mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Localize time for due dates and chat messages (#10555)
* localize time for pt_BR and zh * add zh_TW to moment langs mapping
This commit is contained in:
committed by
Matteo Pagliazzi
parent
4493e1d98c
commit
7aa2fac14a
@@ -16,7 +16,7 @@ function geti18nBrowserScript (language) {
|
||||
availableLanguages,
|
||||
language,
|
||||
strings: translations[langCode],
|
||||
momentLang: momentLangs[language.momentLangCode],
|
||||
momentLang: momentLangs[langCode],
|
||||
})};
|
||||
})()`;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ let momentLangsMapping = {
|
||||
en_GB: 'en-gb', // eslint-disable-line camelcase
|
||||
no: 'nn',
|
||||
zh: 'zh-cn',
|
||||
zh_TW: 'zh-tw', // eslint-disable-line camelcase
|
||||
es_419: 'es', // eslint-disable-line camelcase
|
||||
pt_BR: 'pt-br', // eslint-disable-line camelcase
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user