ci: Fix translation normalization feature (#2165)

This commit is contained in:
Pun Butrach 2024-08-27 21:04:15 +07:00 committed by GitHub
parent 3d8318da14
commit f2931443d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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