mirror of
https://github.com/grey-cat-1908/metro.git
synced 2024-11-11 19:07:28 +03:00
test
This commit is contained in:
parent
59b5c3ac69
commit
e409934407
2 changed files with 3 additions and 3 deletions
|
@ -168,8 +168,8 @@ store.$subscribe((mutation, state) => {
|
|||
<hr>
|
||||
<br>
|
||||
<h2>{{ $t("app.cursor") }}: ({{ xcord }}; {{ ycord }}) | <a class="text-right" style="text-decoration: none" href="https://arbuz.icu/blog/metro-line/">{{ $t("app.about") }}</a> |
|
||||
<a v-if="$i18n.locale == 'ru'" @click="$i18n.locale = 'en'; localStorage.setItem('locale', 'en');" style="color: red; cursor: pointer;">English</a>
|
||||
<a v-else @click="$i18n.locale = 'ru'; localStorage.setItem('locale', 'ru');" style="color: red; cursor: pointer;">Русский</a>
|
||||
<a v-if="$i18n.locale == 'ru'" @click="$i18n.locale = 'en'; window.localStorage.setItem('locale', 'en');" style="color: red; cursor: pointer;">English</a>
|
||||
<a v-else @click="$i18n.locale = 'ru'; window.localStorage.setItem('locale', 'ru');" style="color: red; cursor: pointer;">Русский</a>
|
||||
</h2>
|
||||
</div>
|
||||
</v-col>
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue