2022-01-12 12:54:04 +00:00
|
|
|
const localeKeys: { [key: string]: string } = {
|
2019-07-23 14:07:19 +00:00
|
|
|
en: 'en',
|
2022-12-14 15:59:30 +00:00
|
|
|
ar: 'ar',
|
2019-07-23 14:07:19 +00:00
|
|
|
de: 'de',
|
2022-12-14 15:59:30 +00:00
|
|
|
'es-ES': 'es',
|
|
|
|
fi: 'fi',
|
|
|
|
fr: 'fr',
|
2020-11-04 12:28:41 +00:00
|
|
|
it: 'it',
|
|
|
|
ja: 'ja',
|
|
|
|
nl: 'nl',
|
2022-12-14 15:59:30 +00:00
|
|
|
'pt-BR': 'pt-br',
|
|
|
|
'pt-PT': 'pt',
|
|
|
|
ru: 'ru',
|
|
|
|
'sl-SI': 'sl',
|
|
|
|
sv: 'sv',
|
|
|
|
tr: 'tr',
|
|
|
|
'zh-CN': 'zh-cn',
|
2020-11-04 12:28:41 +00:00
|
|
|
'zh-TW': 'zh-tw'
|
2019-07-23 14:07:19 +00:00
|
|
|
};
|
|
|
|
|
2022-01-12 12:54:04 +00:00
|
|
|
export const toMomentLocale = (locale: string): string => localeKeys[locale];
|