verdnatura-chat/app/utils/moment.js

12 lines
182 B
JavaScript
Raw 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'
};
export const toMomentLocale = locale => localeKeys[locale];