mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
ci: Fix translation normalization feature (#2165)
This commit is contained in:
parent
3d8318da14
commit
f2931443d9
1 changed files with 6 additions and 6 deletions
12
.github/workflows/sync_crowdin.yml
vendored
12
.github/workflows/sync_crowdin.yml
vendored
|
@ -47,20 +47,20 @@ jobs:
|
||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||||
|
|
||||||
- name: Generate Translation Strings
|
- name: Normalization of Translation Strings
|
||||||
run: |
|
run: |
|
||||||
dart pub get
|
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 analyze
|
||||||
dart run slang clean
|
dart run slang clean
|
||||||
dart run slang normalize
|
dart run slang normalize
|
||||||
|
|
||||||
|
- name: Remove empty values of Translation & Validation of Translation Strings
|
||||||
|
run: |
|
||||||
cd assets/i18n
|
cd assets/i18n
|
||||||
sudo chmod 777 *.json
|
sudo chmod 777 *.json
|
||||||
dart nuke.dart >> $GITHUB_STEP_SUMMARY
|
dart nuke.dart >> $GITHUB_STEP_SUMMARY
|
||||||
|
cd ../..
|
||||||
|
dart run slang
|
||||||
flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings
|
flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings
|
||||||
|
|
||||||
- name: Commit translations
|
- name: Commit translations
|
||||||
|
|
Loading…
Reference in a new issue