fix: lang not reset if value not match
This commit is contained in:
parent
30dfa64930
commit
677cfb3756
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ export function initLang(): Lang {
|
|||
const { locale } = i18n.global;
|
||||
const current = localStorage.getItem('currentLanguage') as Lang | null;
|
||||
|
||||
if (locale.value !== Lang.English && locale.value !== Lang.Thai) {
|
||||
if (current !== Lang.English && current !== Lang.Thai) {
|
||||
return setLang(Lang.Thai);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue