From 64697235d632d513d98151451742aabb38274698 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 8 Jul 2023 15:26:26 -0500 Subject: [PATCH] feat(mobile): adding additional languages (#3161) * update locale * localizely * Update info.plist --------- Co-authored-by: Alex Tran --- localizely.yml | 68 ++++++++++++++++++++++--------- mobile/ios/Runner/Info.plist | 34 +++++++++++----- mobile/lib/constants/locales.dart | 32 +++++++++++---- 3 files changed, 95 insertions(+), 39 deletions(-) diff --git a/localizely.yml b/localizely.yml index c2b76f392c..a8b9c89db3 100644 --- a/localizely.yml +++ b/localizely.yml @@ -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 diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plist index 044a046884..508bebe2f8 100644 --- a/mobile/ios/Runner/Info.plist +++ b/mobile/ios/Runner/Info.plist @@ -21,24 +21,38 @@ 6.0 CFBundleLocalizations - cs - da - de en - es - fi - fr + de + da it + es + vi + fr ja - ko - nl pl + fi pt + cs + uk ru - se - sk zh + sk + nl nb + sv + mn + ko + sr + sr + hi + es + es + sv + ca + hu + lv + zh + th CFBundleName immich_mobile diff --git a/mobile/lib/constants/locales.dart b/mobile/lib/constants/locales.dart index 16e15191e4..452203d512 100644 --- a/mobile/lib/constants/locales.dart +++ b/mobile/lib/constants/locales.dart @@ -4,23 +4,37 @@ const List locales = [ // Default locale Locale('en', 'US'), // Additional locales - Locale('cs', 'CZ'), - Locale('da', 'DK'), Locale('de', 'DE'), - Locale('es', 'ES'), - Locale('fi', 'FI'), - Locale('fr', 'FR'), + Locale('da', 'DK'), Locale('it', 'IT'), + Locale('es', 'ES'), + Locale('vi', 'VN'), + Locale('fr', 'FR'), 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';