Fix iOS translation config

This commit is contained in:
Leendert de Borst
2025-07-22 15:39:41 +02:00
parent ddd7b0a4ab
commit 44ff1b0118
2 changed files with 30 additions and 4 deletions

View File

@@ -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

View File

@@ -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:
<key: type, code: callbackValue, message: Unsupported type>
✔️ 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'
````