Skip to content

Commit

Permalink
feat(mobile): adding additional languages (immich-app#3161)
Browse files Browse the repository at this point in the history
* update locale

* localizely

* Update info.plist

---------

Co-authored-by: Alex Tran <[email protected]>
  • Loading branch information
alextran1502 and Alex Tran authored Jul 8, 2023
1 parent a5cc408 commit 6469723
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 37 deletions.
68 changes: 48 additions & 20 deletions localizely.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,65 @@ download:
files:
- file: mobile/assets/i18n/en-US.json
locale_code: en-US
- file: mobile/assets/i18n/da-DK.json
locale_code: da-DK
- file: mobile/assets/i18n/de-DE.json
locale_code: de-DE
- file: mobile/assets/i18n/fr-FR.json
locale_code: fr-FR
- file: mobile/assets/i18n/da-DK.json
locale_code: da-DK
- file: mobile/assets/i18n/it-IT.json
locale_code: it-IT
- file: mobile/assets/i18n/nl-NL.json
locale_code: nl-NL
- file: mobile/assets/i18n/ko-KR.json
locale_code: ko-KR
- file: mobile/assets/i18n/es-ES.json
locale_code: es-ES
- file: mobile/assets/i18n/fi-FI.json
locale_code: fi-FI
- file: mobile/assets/i18n/vi-VN.json
locale_code: vi-VN
- file: mobile/assets/i18n/fr-FR.json
locale_code: fr-FR
- file: mobile/assets/i18n/ja-JP.json
locale_code: ja-JP
- file: mobile/assets/i18n/pt-BR.json
locale_code: pt-BR
- file: mobile/assets/i18n/pl-PL.json
locale_code: pl-PL
- file: mobile/assets/i18n/sv-SE.json
locale_code: sv-SE
- file: mobile/assets/i18n/sk-SK.json
locale_code: sk-SK
- file: mobile/assets/i18n/zh-CN.json
locale_code: zh-CN
- file: mobile/assets/i18n/ru-RU.json
locale_code: ru-RU
- file: mobile/assets/i18n/fi-FI.json
locale_code: fi-FI
- file: mobile/assets/i18n/pt-BR.json
locale_code: pt-BR
- file: mobile/assets/i18n/cs-CZ.json
locale_code: cs-CZ
- file: mobile/assets/i18n/uk-UA.json
locale_code: uk-UA
- file: mobile/assets/i18n/ru-RU.json
locale_code: ru-RU
- file: mobile/assets/i18n/zh-CN.json
locale_code: zh-CN
- file: mobile/assets/i18n/sk-SK.json
locale_code: sk-SK
- file: mobile/assets/i18n/nl-NL.json
locale_code: nl-NL
- file: mobile/assets/i18n/nb-NO.json
locale_code: nb-NO
- file: mobile/assets/i18n/sv-SE.json
locale_code: sv-SE
- file: mobile/assets/i18n/mn.json
locale_code: mn
- file: mobile/assets/i18n/ko-KR.json
locale_code: ko-KR
- file: mobile/assets/i18n/sr-Latn.json
locale_code: sr-Latn
- file: mobile/assets/i18n/sr-Cyrl.json
locale_code: sr-Cyrl
- file: mobile/assets/i18n/hi-IN.json
locale_code: hi-IN
- file: mobile/assets/i18n/es-PE.json
locale_code: es-PE
- file: mobile/assets/i18n/es-MX.json
locale_code: es-MX
- file: mobile/assets/i18n/sv-FI.json
locale_code: sv-FI
- file: mobile/assets/i18n/ca.json
locale_code: ca
- file: mobile/assets/i18n/hu-HU.json
locale_code: hu-HU
- file: mobile/assets/i18n/lv-LV.json
locale_code: lv-LV
- file: mobile/assets/i18n/zh-Hans.json
locale_code: zh-Hans
- file: mobile/assets/i18n/th-TH.json
locale_code: th-TH
32 changes: 23 additions & 9 deletions mobile/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,38 @@
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>cs</string>
<string>da</string>
<string>de</string>
<string>en</string>
<string>de</string>
<string>da</string>
<string>it</string>
<string>es</string>
<string>fi</string>
<string>vi</string>
<string>fr</string>
<string>it</string>
<string>ja</string>
<string>ko</string>
<string>nl</string>
<string>pl</string>
<string>fi</string>
<string>pt</string>
<string>cs</string>
<string>uk</string>
<string>ru</string>
<string>se</string>
<string>sk</string>
<string>zh</string>
<string>sk</string>
<string>nl</string>
<string>nb</string>
<string>sv</string>
<string>mn</string>
<string>ko</string>
<string>sr</string>
<string>sr</string>
<string>hi</string>
<string>es</string>
<string>es</string>
<string>sv</string>
<string>ca</string>
<string>hu</string>
<string>lv</string>
<string>zh</string>
<string>th</string>
</array>
<key>CFBundleName</key>
<string>immich_mobile</string>
Expand Down
30 changes: 22 additions & 8 deletions mobile/lib/constants/locales.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,37 @@ const List<Locale> locales = [
// Default locale
Locale('en', 'US'),
// Additional locales
Locale('cs', 'CZ'),
Locale('da', 'DK'),
Locale('de', 'DE'),
Locale('da', 'DK'),
Locale('it', 'IT'),
Locale('es', 'ES'),
Locale('fi', 'FI'),
Locale('vi', 'VN'),
Locale('fr', 'FR'),
Locale('it', 'IT'),
Locale('ja', 'JP'),
Locale('ko', 'KR'),
Locale('nl', 'NL'),
Locale('pl', 'PL'),
Locale('fi', 'FI'),
Locale('pt', 'PR'),
Locale('cs', 'CZ'),
Locale('uk', 'UA'),
Locale('ru', 'RU'),
Locale('sv', 'SE'),
Locale('sk', 'SK'),
Locale('zh', 'CN'),
Locale('sk', 'SK'),
Locale('nl', 'NL'),
Locale('nb', 'NO'),
Locale('sv', 'SE'),
Locale('mn', 'MN'),
Locale('ko', 'KR'),
Locale('sr', 'Latn'),
Locale('sr', 'Cyrl'),
Locale('hi', 'IN'),
Locale('es', 'PE'),
Locale('es', 'MX'),
Locale('sv', 'FI'),
Locale('ca', 'CA'),
Locale('hu', 'HU'),
Locale('lv', 'LV'),
Locale('zh', 'Hans'),
Locale('th', 'TH'),
];

const String translationsPath = 'assets/i18n';

0 comments on commit 6469723

Please sign in to comment.