diff --git a/src/App.vue b/src/App.vue index e055a94..f56d810 100644 --- a/src/App.vue +++ b/src/App.vue @@ -168,8 +168,8 @@ store.$subscribe((mutation, state) => {

{{ $t("app.cursor") }}: ({{ xcord }}; {{ ycord }}) | {{ $t("app.about") }} | - English - Русский + English + Русский

diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts index a79a773..8bfbbe1 100644 --- a/src/utils/i18n.ts +++ b/src/utils/i18n.ts @@ -107,7 +107,7 @@ const messages = { // 2. Create i18n instance with options export const i18n = createI18n({ - locale: localStorage.getItem("locale") | 'ru', + locale: window.localStorage.getItem("locale") | 'ru', fallbackLocale: 'ru', messages })