verdnatura-chat/app/utils/moment.js

17 lines
250 B
JavaScript
Raw Permalink Normal View History

2019-07-23 14:07:19 +00:00
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'
2019-07-23 14:07:19 +00:00
};
export const toMomentLocale = locale => localeKeys[locale];