diff --git a/src/store/mutations.js b/src/store/mutations.js index a691f66..e253ffd 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -64,8 +64,8 @@ if (storageAvailable('localStorage')) { tileServer = null; } - locale = localStorage.getItem('locale'); - if (!messages[locale]) { + locale = loadDataFromStorage('locale'); + if (!(locale in messages)) { locale = null; } if (!locale) {