Skip to content

Commit

Permalink
Localize time for due dates and chat messages (#10555)
Browse files Browse the repository at this point in the history
* localize time for pt_BR and zh

* add zh_TW to moment langs mapping
  • Loading branch information
thefifthisa authored and paglias committed Aug 3, 2018
1 parent 4493e1d commit 7aa2fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/server/controllers/api-v3/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function geti18nBrowserScript (language) {
availableLanguages,
language,
strings: translations[langCode],
momentLang: momentLangs[language.momentLangCode],
momentLang: momentLangs[langCode],
})};
})()`;
}
Expand Down
1 change: 1 addition & 0 deletions website/server/libs/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 7aa2fac

Please sign in to comment.