verdnatura-chat/app/utils/moment.js

17 lines
250 B
JavaScript

const localeKeys = {
en: 'en',
ru: 'ru',
'pt-BR': 'pt-br',
'zh-CN': 'zh-cn',
fr: 'fr',
de: 'de',
'pt-PT': 'pt',
it: 'it',
ja: 'ja',
nl: 'nl',
'es-ES': 'es',
'zh-TW': 'zh-tw'
};
export const toMomentLocale = locale => localeKeys[locale];