Skip to content

Commit dfb3fe3

Browse files
build(deps): bump slang_flutter and slang (#2374)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pun Butrach <[email protected]>
1 parent b3ba0fc commit dfb3fe3

File tree

91 files changed

+41
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+41
-453
lines changed

β€Ž.github/workflows/sync_crowdin.ymlβ€Ž

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
uses: subosito/flutter-action@v2
2626
with:
2727
cache: true
28-
flutter-version: 3.24.x
28+
flutter-version: 3.27.x
2929

3030
- name: Sync translations from Crowdin
31-
uses: crowdin/github-action@v1
31+
uses: crowdin/github-action@v2
3232
with:
3333
config: crowdin.yml
3434
upload_sources: true
@@ -47,26 +47,31 @@ jobs:
4747
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
4848
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
4949

50-
# There has to be a better way to do this
51-
- name: Normalization of Translation Strings
50+
- name: Validation of synced translations
5251
run: |
5352
dart pub get
54-
cd assets/i18n
55-
sudo chmod 766 *.json
56-
cd ../..
53+
dart run slang validate
54+
55+
- name: Normalization of Translation Strings
56+
run: |
57+
sudo chmod 766 assets/i18n/*.i18n.json
58+
5759
dart run slang analyze
5860
dart run slang clean
5961
dart run slang normalize
62+
6063
cd assets/i18n
6164
dart nuke.dart >> $GITHUB_STEP_SUMMARY
6265
cd ../..
66+
6367
dart run slang
68+
6469
flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings
6570
6671
- name: Commit translations
6772
run: |
6873
git config user.name revanced-bot
6974
git config user.email [email protected]
7075
sudo chown -R $USER:$USER .git
71-
git commit -m "chore: Remove empty values from JSON" assets/i18n/strings_*.json
76+
git commit -m "chore: Remove empty values from JSON" assets/i18n/*.i18n.json
7277
git push origin HEAD:feat/translations

β€Žassets/i18n/README.mdβ€Ž

Lines changed: 0 additions & 14 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)