refactor: use locale format from moment
This commit is contained in:
parent
a7158a7511
commit
f9f0d1d313
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export function setLang(lang: Lang): Lang {
|
|||
localStorage.setItem('currentLanguage', lang);
|
||||
|
||||
// TODO: Make date time get locale from i18n instead of telling it to use specific lang.
|
||||
setDateTimeLocale(lang === Lang.English ? 'en-us' : 'th-th');
|
||||
setDateTimeLocale(lang === Lang.English ? 'en' : 'th');
|
||||
|
||||
return lang;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue