Update boot.js
This commit is contained in:
parent
c15536c394
commit
fed60dd701
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
const res = await fetch(`/assets/locales/${lang}.${v}.json`);
|
const res = await fetch(`/assets/locales/${lang}.${v}.json`);
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
|
localStorage.setItem('lang', lang);
|
||||||
localStorage.setItem('locale', JSON.stringify(json));
|
localStorage.setItem('locale', JSON.stringify(json));
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
Loading…
Reference in a new issue