[FIX] Missing locales in moment helper (#2562)

This commit is contained in:
zaphod534 2020-11-04 13:28:41 +01:00 committed by GitHub
parent 702d36a625
commit dcb0639232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,12 @@ const localeKeys = {
'zh-CN': 'zh-cn', 'zh-CN': 'zh-cn',
fr: 'fr', fr: 'fr',
de: 'de', 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]; export const toMomentLocale = locale => localeKeys[locale];