vn-verdnaturachat/app/i18n/moment.ts

22 lines
355 B
TypeScript
Raw Normal View History

const localeKeys: { [key: string]: string } = {
2019-07-23 14:07:19 +00:00
en: 'en',
ar: 'ar',
2019-07-23 14:07:19 +00:00
de: 'de',
'es-ES': 'es',
fi: 'fi',
fr: 'fr',
it: 'it',
ja: 'ja',
nl: 'nl',
'pt-BR': 'pt-br',
'pt-PT': 'pt',
ru: 'ru',
'sl-SI': 'sl',
sv: 'sv',
tr: 'tr',
'zh-CN': 'zh-cn',
'zh-TW': 'zh-tw'
2019-07-23 14:07:19 +00:00
};
export const toMomentLocale = (locale: string): string => localeKeys[locale];