From e3b043e0e183a12aca0b0493cc67fe96c18c15b6 Mon Sep 17 00:00:00 2001 From: Vegard Fladby Date: Thu, 6 Apr 2023 21:00:24 +0200 Subject: [PATCH] Update Norwegian locale to ICU standard (#2195) * Update Norwegian locale to ICU standard Don't know if this is the only place this should be edited. But the Norwegian locale is not working on the Android app (still in English), And it seems like it should be 'nb-NO' and not 'no-NO'. https://www.localeplanet.com/icu/nb-NO/index.html * fix norweigian locale in other places * fix norweigian locale in other places --------- Co-authored-by: Alex Tran --- localizely.yml | 4 ++-- mobile/assets/i18n/{no-NO.json => nb-NO.json} | 0 mobile/ios/Runner/Info.plist | 2 +- mobile/lib/constants/locales.dart | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename mobile/assets/i18n/{no-NO.json => nb-NO.json} (100%) diff --git a/localizely.yml b/localizely.yml index a5949c468b..c2b76f392c 100644 --- a/localizely.yml +++ b/localizely.yml @@ -44,5 +44,5 @@ download: locale_code: ru-RU - file: mobile/assets/i18n/cs-CZ.json locale_code: cs-CZ - - file: mobile/assets/i18n/no-NO.json - locale_code: no-NO + - file: mobile/assets/i18n/nb-NO.json + locale_code: nb-NO diff --git a/mobile/assets/i18n/no-NO.json b/mobile/assets/i18n/nb-NO.json similarity index 100% rename from mobile/assets/i18n/no-NO.json rename to mobile/assets/i18n/nb-NO.json diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plist index 9e393d2552..2850bc8b0c 100644 --- a/mobile/ios/Runner/Info.plist +++ b/mobile/ios/Runner/Info.plist @@ -38,7 +38,7 @@ se sk zh - no + nb CFBundleName immich_mobile diff --git a/mobile/lib/constants/locales.dart b/mobile/lib/constants/locales.dart index 9a2f5d81a5..16e15191e4 100644 --- a/mobile/lib/constants/locales.dart +++ b/mobile/lib/constants/locales.dart @@ -20,7 +20,7 @@ const List locales = [ Locale('sv', 'SE'), Locale('sk', 'SK'), Locale('zh', 'CN'), - Locale('no', 'NO'), + Locale('nb', 'NO'), ]; const String translationsPath = 'assets/i18n';