mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00: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:
parent
4493e1d98c
commit
7aa2fac14a
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue