From e409934407103221acd23e2a15a97dbd7750a546 Mon Sep 17 00:00:00 2001 From: grey-cat-1908 Date: Sun, 24 Mar 2024 17:30:21 +0300 Subject: [PATCH] test --- src/App.vue | 4 ++-- src/utils/i18n.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 })