Skip to content

Commit 1a36878

Browse files
leqtrungitlequoctrung-it
andauthored
add code change name for momentjs file (#8943)
Co-authored-by: lequoctrung-it <leqtrungit@DESKTOP-2J4TIEO>
1 parent 3e3202e commit 1a36878

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/services/l10n.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ export default class L10nService extends L10n {
7272

7373
this.setLocale(locale);
7474
if (locale !== 'en') {
75+
76+
if(locale === 'zh_Hans') {
77+
locale = 'zh-cn'
78+
} else if(locale === 'zh_Hant') {
79+
locale = 'zh-tw'
80+
} else if(locale === 'nb_NO') {
81+
locale = 'nb'
82+
}
83+
7584
getScript(`/assets/moment-locales/${locale}.js`)
7685
.then(() => {
7786
moment.locale(locale);

0 commit comments

Comments
 (0)