From 2e8c50e4ba579932840f9eb2c73f8d98d60d3cfa Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:23:52 +0200 Subject: [PATCH] Remove unmaintained languages + minor localization tasks (#587) * Fix missing string * Localize "loading recipes" * Remove unmaintained languages Remove support for Danish, Portuguese and Chinese Traditional, since their current translation state is <20% --- frontend/src/components/Fallbacks/The404.vue | 2 +- frontend/src/components/UI/SiteLoader.vue | 7 +++++-- frontend/src/locales/messages/en-US.json | 18 ++++++++++-------- frontend/src/plugins/vuetify.js | 4 ---- frontend/src/store/modules/language.js | 12 ------------ 5 files changed, 16 insertions(+), 27 deletions(-) diff --git a/frontend/src/components/Fallbacks/The404.vue b/frontend/src/components/Fallbacks/The404.vue index 36e174a30971..60f8d5ba19cd 100644 --- a/frontend/src/components/Fallbacks/The404.vue +++ b/frontend/src/components/Fallbacks/The404.vue @@ -2,7 +2,7 @@
-

{{ $t("404.page-not-found") }}

+

{{ $t('page.404-page-not-found') }}

diff --git a/frontend/src/components/UI/SiteLoader.vue b/frontend/src/components/UI/SiteLoader.vue index d451f25ca592..7415bebda6d0 100644 --- a/frontend/src/components/UI/SiteLoader.vue +++ b/frontend/src/components/UI/SiteLoader.vue @@ -7,14 +7,14 @@
- {{ small ? "" : "Loading Recipes" }} + {{ small ? "" : waitingText }}
- {{ small ? "" : "Loading Recipes" }} + {{ small ? "" : waitingText }}
@@ -60,6 +60,9 @@ export default { size: 125, }; }, + waitingText() { + return this.$t("general.loading-recipes"); + } }, }; diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index a23eda6c0109..b99adae8a3fd 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -36,15 +36,15 @@ "events": { "apprise-url": "Apprise URL", "database": "Database", + "delete-event": "Delete Event", "new-notification-form-description": "Mealie uses the Apprise library to generate notifications. They offer many options for services to use for notifications. Refer to their wiki for a comprehensive guide on how to create the URL for your service. If available, selecting the type of your notification may include extra features.", + "new-version": "New version available!", "notification": "Notification", + "refresh": "Refresh", "scheduled": "Scheduled", "something-went-wrong": "Something Went Wrong!", "subscribed-events": "Subscribed Events", - "test-message-sent": "Test Message Sent", - "refresh": "Refresh", - "new-version": "New version available!", - "delete-event": "Delete Event" + "test-message-sent": "Test Message Sent" }, "general": { "cancel": "Cancel", @@ -81,10 +81,12 @@ "json": "JSON", "keyword": "Keyword", "link-copied": "Link Copied", + "loading-recipes": "Loading Recipes", "monday": "Monday", "name": "Name", "new": "New", "no": "No", + "no-recipe-found": "No Recipe Found", "ok": "OK", "options": "Options:", "print": "Print", @@ -119,8 +121,7 @@ "url": "URL", "view": "View", "wednesday": "Wednesday", - "yes": "Yes", - "no-recipe-found": "No Recipe Found" + "yes": "Yes" }, "group": { "are-you-sure-you-want-to-delete-the-group": "Are you sure you want to delete {groupName}?", @@ -193,6 +194,7 @@ "url-form-hint": "Copy and paste a link from your favorite recipe website" }, "page": { + "404-page-not-found": "404 Page not found", "all-recipes": "All Recipes", "home-page": "Home Page", "new-page-created": "New page created", @@ -291,12 +293,12 @@ "backup-deleted": "Backup deleted", "backup-tag": "Backup Tag", "create-heading": "Create a Backup", + "delete-backup": "Delete Backup", "error-creating-backup-see-log-file": "Error Creating Backup. See Log File", "full-backup": "Full Backup", "import-summary": "Import Summary", "partial-backup": "Partial Backup", - "unable-to-delete-backup": "Unable to Delete Backup.", - "delete-backup": "Delete Backup" + "unable-to-delete-backup": "Unable to Delete Backup." }, "backup-and-exports": "Backups", "change-password": "Change Password", diff --git a/frontend/src/plugins/vuetify.js b/frontend/src/plugins/vuetify.js index 1acc2a19c335..b43f388f96cc 100644 --- a/frontend/src/plugins/vuetify.js +++ b/frontend/src/plugins/vuetify.js @@ -9,10 +9,8 @@ import es from "vuetify/es5/locale/es"; import fr from "vuetify/es5/locale/fr"; import nl from "vuetify/es5/locale/nl"; import pl from "vuetify/es5/locale/pl"; -import pt from "vuetify/es5/locale/pt"; import sv from "vuetify/es5/locale/sv"; import zhHans from "vuetify/es5/locale/zh-Hans"; -import zhHant from "vuetify/es5/locale/zh-Hant"; const vuetify = new Vuetify({ theme: { @@ -48,10 +46,8 @@ const vuetify = new Vuetify({ "fr-FR": fr, "nl-NL": nl, "pl-PL": pl, - "pt-PT": pt, "sv-SE": sv, "zh-CN": zhHans, - "zh-TW": zhHant, }, current: "en-US", }, diff --git a/frontend/src/store/modules/language.js b/frontend/src/store/modules/language.js index 37e0ee4ef4c4..d1416609ac26 100644 --- a/frontend/src/store/modules/language.js +++ b/frontend/src/store/modules/language.js @@ -5,10 +5,6 @@ const state = { name: "English", value: "en-US", }, - { - name: "Dansk (Danish)", - value: "da-DK", - }, { name: "Deutsch (German)", value: "de-DE", @@ -29,10 +25,6 @@ const state = { name: "Polski (Polish)", value: "pl-PL", }, - { - name: "Português (Portuguese)", - value: "pt-PT", - }, { name: "Svenska (Swedish)", value: "sv-SE", @@ -41,10 +33,6 @@ const state = { name: "简体中文 (Chinese simplified)", value: "zh-CN", }, - { - name: "繁體中文 (Chinese traditional)", - value: "zh-TW", - }, ], };