2022-01-12 12:54:04 +00:00
|
|
|
const localeKeys: { [key: string]: string } = {
|
2019-07-23 14:07:19 +00:00
|
|
|
en: 'en',
|
|
|
|
ru: 'ru',
|
|
|
|
'pt-BR': 'pt-br',
|
|
|
|
'zh-CN': 'zh-cn',
|
|
|
|
fr: 'fr',
|
|
|
|
de: 'de',
|
2020-11-04 12:28:41 +00:00
|
|
|
'pt-PT': 'pt',
|
|
|
|
it: 'it',
|
|
|
|
ja: 'ja',
|
|
|
|
nl: 'nl',
|
2020-11-06 14:27:25 +00:00
|
|
|
'es-ES': 'es',
|
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];
|