fix(boot): local storage lang problem
This commit is contained in:
parent
8168fa316f
commit
32270f8bd4
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
|||
let id = localStorage.getItem('id');
|
||||
|
||||
//#region Detect language & fetch translations
|
||||
if (!localStorage.hasOwn('locale')) {
|
||||
if (!localStorage.hasOwnProperty('locale')) {
|
||||
const supportedLangs = LANGS;
|
||||
let lang = localStorage.getItem('lang');
|
||||
if (lang == null || !supportedLangs.includes(lang)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue