From 490a1a7158e04cb58e988f02ccbe98e324ec8faf Mon Sep 17 00:00:00 2001 From: grey-cat-1908 Date: Sun, 24 Mar 2024 16:55:39 +0300 Subject: [PATCH] translate --- package.json | 1 + src/App.vue | 17 +++-- src/components/BaseSettings.vue | 18 ++--- src/components/NewStation.vue | 110 +++--------------------------- src/components/StationsTable.vue | 36 +++++----- src/main.ts | 3 +- src/utils/i18n.ts | 113 +++++++++++++++++++++++++++++++ 7 files changed, 162 insertions(+), 136 deletions(-) create mode 100644 src/utils/i18n.ts diff --git a/package.json b/package.json index ce63eda..22957a2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@vueuse/core": "^10.9.0", "pinia": "^2.1.7", "vue": "^3.3.11", + "vue-i18n": "^9.10.2", "vuetify": "^3.5.9" }, "devDependencies": { diff --git a/src/App.vue b/src/App.vue index ee5e343..770dbb4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -145,29 +145,32 @@ store.$subscribe((mutation, state) => { -

Основные настройки

+

{{ $t("app.main_settings") }}


-

Станции

+

{{ $t("app.stations") }}



-

Управление

+

{{ $t("app.configure") }}


- Экспорт (svg) - Сохранить (json) - Импорт (json) + {{ $t("app.export_file") }} (svg) + {{ $t("app.save_file") }} (json) + {{ $t("app.import_file") }} (json)

-

Курсор: ({{ xcord }}; {{ ycord }}) | Подробнее

+

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

diff --git a/src/components/BaseSettings.vue b/src/components/BaseSettings.vue index 0bd82dc..0912401 100644 --- a/src/components/BaseSettings.vue +++ b/src/components/BaseSettings.vue @@ -9,15 +9,15 @@ const store = useStore()
  • -

    Ширина схемы:

    +

    {{ $t('baseSettings.width')}}:

  • -

    Высота схемы:

    +

    {{ $t('baseSettings.height')}}:

  • -

    Линия:

    +

    {{ $t('baseSettings.line')}}: