From b90dfe2477c0d6ddade6fd866c77b669d7864f27 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 25 Jul 2021 16:55:13 +0100 Subject: [PATCH] :globe_with_meridians: Adds translations for Update component --- src/assets/locales/en.json | 8 +++++++- src/components/Configuration/AppVersion.vue | 12 ++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 9b69980b..eb638c34 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -34,7 +34,6 @@ "change-language-button": "Change App Language", "reset-settings-button": "Reset Local Settings", "app-info-button": "App Info", - "app-version-note": "Dashy version", "backup-note": "It is recommend to make a backup of your configuration before making changes.", "reset-config-msg-l1": "This will remove all user settings from local storage, but won't effect your 'conf.yml' file.", "reset-config-msg-l2": "You should first backup any changes you've made locally, if you want to use them in the future.", @@ -62,6 +61,13 @@ "item-size-large": "Large", "config-launcher-label": "Config" }, + "updates": { + "app-version-note": "Dashy version", + "up-to-date": "Up-to-Date", + "out-of-date": "Update Available", + "unsupported-version-l1": "You are using an unsupported version of Dashy", + "unsupported-version-l2": "For the best experience, and recent security patches, please update to" + }, "language-switcher": { "title": "Change Application Language", "dropdown-label": "Select a Language", diff --git a/src/components/Configuration/AppVersion.vue b/src/components/Configuration/AppVersion.vue index 48dfc4da..698e8a83 100644 --- a/src/components/Configuration/AppVersion.vue +++ b/src/components/Configuration/AppVersion.vue @@ -2,7 +2,7 @@

- {{ $t('config.app-version-note') }} {{ appVersion }} + {{ $t('updates.app-version-note') }} {{ appVersion }}

@@ -11,18 +11,18 @@

- ✅ Up-to-Date + ✅ {{ $t('updates.up-to-date') }}

- ⚠️Update Availible: {{ latestVersion }} + ⚠️{{ $t('updates.out-of-date') }}: {{ latestVersion }}

- ❗ Update Availible: {{ latestVersion }} + ❗ {{ $t('updates.out-of-date') }}: {{ latestVersion }} - You are using an unsupported version of Dashy.
- For the best experience, and recent security patches, please update to {{ latestVersion }} + {{ $t('updates.unsupported-version-l1') }}.
+ {{ $t('updates.unsupported-version-2') }} {{ latestVersion }}