mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 12:47:37 +02:00
build(deps): bump slang_flutter and slang (#2374)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
21
.github/workflows/sync_crowdin.yml
vendored
21
.github/workflows/sync_crowdin.yml
vendored
@ -25,10 +25,10 @@ jobs:
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
cache: true
|
||||
flutter-version: 3.24.x
|
||||
flutter-version: 3.27.x
|
||||
|
||||
- name: Sync translations from Crowdin
|
||||
uses: crowdin/github-action@v1
|
||||
uses: crowdin/github-action@v2
|
||||
with:
|
||||
config: crowdin.yml
|
||||
upload_sources: true
|
||||
@ -47,20 +47,25 @@ jobs:
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
|
||||
# There has to be a better way to do this
|
||||
- name: Normalization of Translation Strings
|
||||
- name: Validation of synced translations
|
||||
run: |
|
||||
dart pub get
|
||||
cd assets/i18n
|
||||
sudo chmod 766 *.json
|
||||
cd ../..
|
||||
dart run slang validate
|
||||
|
||||
- name: Normalization of Translation Strings
|
||||
run: |
|
||||
sudo chmod 766 assets/i18n/*.i18n.json
|
||||
|
||||
dart run slang analyze
|
||||
dart run slang clean
|
||||
dart run slang normalize
|
||||
|
||||
cd assets/i18n
|
||||
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
|
||||
@ -68,5 +73,5 @@ jobs:
|
||||
git config user.name revanced-bot
|
||||
git config user.email github@revanced.app
|
||||
sudo chown -R $USER:$USER .git
|
||||
git commit -m "chore: Remove empty values from JSON" assets/i18n/strings_*.json
|
||||
git commit -m "chore: Remove empty values from JSON" assets/i18n/*.i18n.json
|
||||
git push origin HEAD:feat/translations
|
||||
|
Reference in New Issue
Block a user