From f2931443d9e8e32185b6990a08d8ac4dad9c7682 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Tue, 27 Aug 2024 21:04:15 +0700 Subject: [PATCH] ci: Fix translation normalization feature (#2165) --- .github/workflows/sync_crowdin.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sync_crowdin.yml b/.github/workflows/sync_crowdin.yml index 1b00eeaf..a061ef89 100644 --- a/.github/workflows/sync_crowdin.yml +++ b/.github/workflows/sync_crowdin.yml @@ -47,20 +47,20 @@ jobs: CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} - - name: Generate Translation Strings + - name: Normalization of Translation Strings run: | dart pub get - dart run slang - flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings - - - name: Remove empty values & Validation of Translation Strings - run: | dart run slang analyze dart run slang clean dart run slang normalize + + - name: Remove empty values of Translation & Validation of Translation Strings + run: | cd assets/i18n sudo chmod 777 *.json dart nuke.dart >> $GITHUB_STEP_SUMMARY + cd ../.. + dart run slang flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings - name: Commit translations