diff --git a/src/I18n/I18nManager.tsx b/src/I18n/I18nManager.tsx index b5271dff4..17868dbf7 100644 --- a/src/I18n/I18nManager.tsx +++ b/src/I18n/I18nManager.tsx @@ -4,6 +4,7 @@ import 'moment/locale/en-gb'; import 'moment/locale/es'; import 'moment/locale/fr'; import 'moment/locale/it'; +import 'moment/locale/cs'; import 'moment/locale/pt-br'; import i18n from 'i18n-js'; @@ -13,7 +14,7 @@ import { findBestAvailableLanguage, usesMetricSystem } from 'react-native-locali import Constants from '../utils/Constants'; import Utils from '../utils/Utils'; -import czJsonLanguage from './languages/cz.json'; +import csJsonLanguage from './languages/cs.json'; import deJsonLanguage from './languages/de.json'; import enJsonLanguage from './languages/en.json'; import esJsonLanguage from './languages/es.json'; @@ -79,7 +80,7 @@ export default class I18nManager { es: () => esJsonLanguage, pt: () => ptJsonLanguage, it: () => itJsonLanguage, - cz: () => czJsonLanguage + cs: () => csJsonLanguage }; // Fallback if no available language fits i18n.fallbacks = true; @@ -93,7 +94,7 @@ export default class I18nManager { i18n.translations.es = esJsonLanguage; i18n.translations.pt = ptJsonLanguage; i18n.translations.it = itJsonLanguage; - i18n.translations.cz = czJsonLanguage; + i18n.translations.cs = csJsonLanguage; // Update layout direction I18nReactNativeManager.forceRTL(isRTL); // Default diff --git a/src/I18n/languages/cz.json b/src/I18n/languages/cs.json similarity index 100% rename from src/I18n/languages/cz.json rename to src/I18n/languages/cs.json diff --git a/src/utils/Constants.tsx b/src/utils/Constants.tsx index 1abe990ed..21312238e 100644 --- a/src/utils/Constants.tsx +++ b/src/utils/Constants.tsx @@ -3,8 +3,8 @@ import { PagingParams } from '../types/QueryParams'; export default class Constants { public static readonly REST_RESPONSE_SUCCESS = 'Success'; - public static readonly SUPPORTED_LOCALES = ['en_US', 'fr_FR', 'de_DE', 'es_ES', 'pt_PT', 'it_IT', 'cz_CZ']; - public static readonly SUPPORTED_LANGUAGES = ['en', 'fr', 'de', 'es', 'pt', 'it', 'cz']; + public static readonly SUPPORTED_LOCALES = ['en_US', 'fr_FR', 'es_ES', 'de_DE', 'pt_PT', 'it_IT', 'cs_CZ', 'en_AU']; + public static readonly SUPPORTED_LANGUAGES = ['en', 'fr', 'de', 'es', 'pt', 'it', 'cs']; public static readonly DEFAULT_LOCALE = 'en_US'; public static readonly DEFAULT_LANGUAGE = 'en';