Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump slang_flutter and slang #2374

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/sync_crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,26 +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
# There will be no way flutter analyze will fail... right?

- name: Commit translations
run: |
git config user.name revanced-bot
git config user.email [email protected]
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
14 changes: 0 additions & 14 deletions assets/i18n/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion assets/i18n/strings_am_ET.i18n.json → assets/i18n/af_ZA.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"appInfoView": {},
"contributorsView": {},
"installErrorDialog": {}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_as_IN.i18n.json → assets/i18n/am_ET.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"appInfoView": {},
"contributorsView": {},
"installErrorDialog": {}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_ar_SA.i18n.json → assets/i18n/ar_SA.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "فشل التثبيت نظرًا لكون التطبيق المعدل إصدارًا أقل من التطبيق المثبت.\n\nهل تريد إلغاء تثبيت التطبيق والمحاولة مرة أخرى؟",
"status_unknown_description": "فشل التثبيت لسبب غير معروف. الرجاء المحاولة مرة أخرى."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_bs_BA.i18n.json → assets/i18n/as_IN.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"appInfoView": {},
"contributorsView": {},
"installErrorDialog": {}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_az_AZ.i18n.json → assets/i18n/az_AZ.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "Yamaqlanmış tətbiq, quraşdırılmış tətbiqdən daha aşağı versiyaya sahib olduğu üçün quraşdırma uğursuz oldu.\n\nTətbiqi silib yenidən sınayırsınız?",
"status_unknown_description": "Naməlum səbəbə görə quraşdırma uğursuz oldu. Lütfən yenidən sınayın."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_be_BY.i18n.json → assets/i18n/be_BY.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,4 @@
"install_failed_version_downgrade_description": "Збой усталявання, бо выпраўленая праграма мае больш новую версію, чым усталяваная праграма.\n\nВыдаліць праграму і паспрабаваць яшчэ раз?",
"status_unknown_description": "Збой усталявання, бо адбылася невядомая памылка. Паўтарыце спробу яшчэ раз."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_bg_BG.i18n.json → assets/i18n/bg_BG.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "Инсталацията се провали поради това, че модифицираното приложение е с по-ниска версия от инсталираното приложение.\n\nДеинсталирайте приложението и опитайте отново?",
"status_unknown_description": "Инсталацията не е успешна поради неизвестна причина. Моля, опитайте отново."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_bn_BD.i18n.json → assets/i18n/bn_BD.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,4 @@
"install_failed_version_downgrade_description": "প্যাচ করা অ্যাপ ইনস্টল করা অ্যাপের চেয়ে কম সংস্করণ হওয়ায় ইনস্টলেশন ব্যর্থ হয়েছে.\n\nঅ্যাপটি আনইনস্টল করে আবার চেষ্টা করবেন?",
"status_unknown_description": "একটি অজানা কারণে ইনস্টলেশন ব্যর্থ হয়েছে. অনুগ্রহপূর্বক আবার চেষ্টা করুন."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_af_ZA.i18n.json → assets/i18n/bs_BA.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"appInfoView": {},
"contributorsView": {},
"installErrorDialog": {}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_ca_ES.i18n.json → assets/i18n/ca_ES.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@
"widgetTitle": "Col·laboradors"
},
"installErrorDialog": {}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_cs_CZ.i18n.json → assets/i18n/cs_CZ.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "Instalace se nezdařila kvůli tomu, že již nainstalovaná verze je novější.\n\nOdinstalovat tuto aplikaci a zkusit znovu?",
"status_unknown_description": "Instalace se nezdařila z neznámých důvodů. Prosím zkuste to znovu."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_da_DK.i18n.json → assets/i18n/da_DK.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "Installationen mislykkedes, fordi den lappede app er en lavere version end den installerede app.\n\nAfinstaller app'en og prøv igen?",
"status_unknown_description": "Installationen mislykkedes på grund af en ukendt årsag. Prøv venligst igen."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_de_DE.i18n.json → assets/i18n/de_DE.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "Die Installation ist fehlgeschlagen, da die gepatchte App eine niedrigere Version als die installierte App ist.\n\nDie App deinstallieren und erneut versuchen?",
"status_unknown_description": "Die Installation ist aus einem unbekannten Grund fehlgeschlagen. Bitte versuchen Sie es erneut."
}
}
}
2 changes: 1 addition & 1 deletion assets/i18n/strings_el_GR.i18n.json → assets/i18n/el_GR.i18n.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@
"install_failed_version_downgrade_description": "Η εγκατάσταση απέτυχε διότι η τροποποιημένη εφαρμογή έχει χαμηλότερη έκδοση από την εγκατεστημένη εφαρμογή.\n\nΑπεγκατάσταση εφαρμογής και προσπάθεια ξανά;",
"status_unknown_description": "Η εγκατάσταση απέτυχε για κάποιον άγνωστο λόγο.\nΠαρακαλώ δοκιμάστε ξανά."
}
}
}
Loading
Loading