From 44ff1b0118068611722241b76697601814610867 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Tue, 22 Jul 2025 15:39:41 +0200 Subject: [PATCH] Fix iOS translation config --- crowdin.yml | 5 +---- docs/misc/dev/translations.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/crowdin.yml b/crowdin.yml index 2b73e3428..7355ab9d3 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -51,12 +51,9 @@ files: - source: /apps/mobile-app/i18n/locales/en.json translation: /apps/mobile-app/i18n/locales/%two_letters_code%.json type: json - - source: /apps/mobile-app/ios/AliasVault/en.lproj/InfoPlist.strings - translation: /apps/mobile-app/ios/AliasVault/%two_letters_code%.lproj/InfoPlist.strings - type: strings - source: /apps/mobile-app/ios/**/en.lproj/*.strings translation: /apps/mobile-app/ios/**/%two_letters_code%.lproj/%original_file_name% - type: strings + type: macosx - source: /apps/mobile-app/android/app/src/main/res/values/strings.xml translation: /apps/mobile-app/android/app/src/main/res/values-%two_letters_code%/strings.xml type: android diff --git a/docs/misc/dev/translations.md b/docs/misc/dev/translations.md index f0fb2da84..f3daecb88 100644 --- a/docs/misc/dev/translations.md +++ b/docs/misc/dev/translations.md @@ -103,5 +103,34 @@ The Crowdin GitHub App automatically: - Offers new content for translation in the Crowdin web interface - Manages translation file synchronization across all applications +Installing Crowdin CLI on MacOS for manually syncing source files: +```bash +brew tap crowdin/crowdin +brew install crowdin@4 +brew link --force --overwrite crowdin@4 +``` + +To test uploading of source files via CLI to detect any issues with formatting: + +```bash +crowdin upload --token=[api_token] --project-id=808100 +``` + +Example output which may indicate errors: + +```bash +✔️ Directory 'apps/mobile-app/ios/Autofill' +✔️ Directory 'apps/mobile-app/ios/Autofill/en.lproj' +❌ File 'apps/mobile-app/ios/Autofill/en.lproj/Localizable.strings' +❌ Wrong parameters: + +✔️ Directory 'apps/mobile-app/android' +✔️ Directory 'apps/mobile-app/android/app' +✔️ Directory 'apps/mobile-app/android/app/src' +✔️ Directory 'apps/mobile-app/android/app/src/main' +✔️ Directory 'apps/mobile-app/android/app/src/main/res' +✔️ Directory 'apps/mobile-app/android/app/src/main/res/values' +✔️ File 'apps/mobile-app/android/app/src/main/res/values/strings.xml' +````