Skip to content

Commit

Permalink
Destroy Nuke:tm:
Browse files Browse the repository at this point in the history
  • Loading branch information
validcube authored Jan 3, 2025
1 parent 9ae6b4d commit 371bec6
Show file tree
Hide file tree
Showing 107 changed files with 809 additions and 813 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/sync_crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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
Expand All @@ -47,26 +47,22 @@ 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 analyze
dart run slang clean
dart run slang validate
- name: Normalization of Translation Strings
run: |
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
28 changes: 14 additions & 14 deletions assets/i18n/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Nuke:tm:

> ![CAUTION]
> Some of the code are licensed under BSD 3-Clause License, please check inside the code file for more information.
## Usage

Move to your desire directory and run

```bash
dart nuke.dart
```

and it will remove all the empty keys from the JSON files in the current folder.
# Nuke:tm:

> ![CAUTION]
> Some of the code are licensed under BSD 3-Clause License, please check inside the code file for more information.
## Usage

Move to your desire directory and run

```bash
dart nuke.dart
```

and it will remove all the empty keys from the JSON files in the current folder.
2 changes: 1 addition & 1 deletion assets/i18n/strings_as_IN.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_af_ZA.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_am_ET.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_bs_BA.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

0 comments on commit 371bec6

Please sign in to comment.