mirror of
https://github.com/lanedirt/AliasVault.git
synced 2025-12-05 19:07:26 -06:00
Fix iOS translation config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
````
|
||||
|
||||
|
||||
Reference in New Issue
Block a user