Skip to content

Commit

Permalink
[FIX] Missing locales in moment helper (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphod534 authored Nov 4, 2020
1 parent 702d36a commit dcb0639
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/utils/moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ const localeKeys = {
'zh-CN': 'zh-cn',
fr: 'fr',
de: 'de',
'pt-PT': 'pt'
'pt-PT': 'pt',
it: 'it',
ja: 'ja',
nl: 'nl',
'es-ES': 'es-es',
'zh-TW': 'zh-tw'
};

export const toMomentLocale = locale => localeKeys[locale];

0 comments on commit dcb0639

Please sign in to comment.