Skip to content

Commit

Permalink
Clean translations (#404)
Browse files Browse the repository at this point in the history
* chore: run translations cleaner

* chore: add melos utilities to clean translations

* ci: check translations
  • Loading branch information
jkoenig134 authored Jan 22, 2025
1 parent 8ca7107 commit 0998546
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- run: melos bootstrap
- run: melos analyze
- run: melos format
- run: melos check_translations

test:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion apps/enmeshed/lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
"drawer_hints_firstSteps": "Erste Schritte",
"profiles_copyAddressToClipboardLabel": "Die Profil-Adresse in die Zwischenablage kopieren.",
"profiles_copiedAddressToClipboard": "Die Profil-Adresse wurde in die Zwischenablage kopiert.",
"profiles_settings_title": "Einstellungen",
"profiles_settings_subtitle": "Verwalten Sie hier Ihre verbundenen Geräte und Profileinstellungen oder sichern Sie Ihre Daten.",
"profiles_settings_editProfile": "Profil bearbeiten",
"profiles_settings_deleteProfile": "Profil löschen",
Expand Down
1 change: 0 additions & 1 deletion apps/enmeshed/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
"drawer_hints_firstSteps": "First steps",
"profiles_copyAddressToClipboardLabel": "Copy your profile-address to the clipboard.",
"profiles_copiedAddressToClipboard": "The profile-address has been copied to the clipboard.",
"profiles_settings_title": "Settings",
"profiles_settings_subtitle": "Manage your connected devices and profile settings or back up your data here.",
"profiles_settings_editProfile": "Edit profile",
"profiles_settings_deleteProfile": "Delete profile",
Expand Down
8 changes: 8 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ scripts:
outdated:
run: melos exec -c 1 --no-flutter -- "dart pub outdated" && melos exec -c 1 --flutter -- "flutter pub outdated"
description: Run `dart pub outdated` in all packages

check_translations:
run: melos exec --dir-exists=lib/l10n --flutter -- "dart run translations_cleaner list-unused-terms --abort-on-unused"
description: Check translations in all packages

clean_translations:
run: melos exec --dir-exists=lib/l10n --flutter -- "dart run translations_cleaner clean-translations && npx prettier -w lib/l10n/*.arb --parser json"
description: Check translations in all packages

0 comments on commit 0998546

Please sign in to comment.