From 67563da67b49b02c8256ac596b61d8bf67d4b3d3 Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Fri, 18 Jun 2021 15:09:02 +0200 Subject: [PATCH] Localization (#568) * Translate 404 pages * Remove unused strings --- .../src/components/Fallbacks/NoRecipe.vue | 2 +- frontend/src/components/Fallbacks/The404.vue | 18 +++++------ frontend/src/locales/messages/en-US.json | 31 +++++-------------- frontend/src/pages/HomePage.vue | 2 +- 4 files changed, 18 insertions(+), 35 deletions(-) diff --git a/frontend/src/components/Fallbacks/NoRecipe.vue b/frontend/src/components/Fallbacks/NoRecipe.vue index d93b9240172c..d196b487c05b 100644 --- a/frontend/src/components/Fallbacks/NoRecipe.vue +++ b/frontend/src/components/Fallbacks/NoRecipe.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/components/Fallbacks/The404.vue b/frontend/src/components/Fallbacks/The404.vue index 885a722ed657..36e174a30971 100644 --- a/frontend/src/components/Fallbacks/The404.vue +++ b/frontend/src/components/Fallbacks/The404.vue @@ -29,15 +29,15 @@ diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index f888dd56bd23..7ce2e0e1533f 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -1,8 +1,4 @@ { - "404": { - "page-not-found": "404 Page Not Found", - "take-me-home": "Take me Home" - }, "about": { "about": "About", "about-mealie": "About Mealie", @@ -41,7 +37,9 @@ "apprise-url": "Apprise URL", "database": "Database", "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", @@ -51,7 +49,6 @@ "delete-event": "Delete Event" }, "general": { - "apply": "Apply", "cancel": "Cancel", "clear": "Clear", "close": "Close", @@ -79,15 +76,14 @@ "friday": "Friday", "general": "General", "get": "Get", + "home": "Home", "image": "Image", "image-upload-failed": "Image upload failed", "import": "Import", "json": "JSON", "keyword": "Keyword", - "link": "Link", "link-copied": "Link Copied", "monday": "Monday", - "more": "More", "name": "Name", "new": "New", "no": "No", @@ -125,7 +121,8 @@ "url": "URL", "view": "View", "wednesday": "Wednesday", - "yes": "Yes" + "yes": "Yes", + "no-recipe-found": "No Recipe Found" }, "group": { "are-you-sure-you-want-to-delete-the-group": "Are you sure you want to delete {groupName}?", @@ -141,7 +138,6 @@ "group-name": "Group Name", "group-not-found": "Group not found", "groups": "Groups", - "groups-can-only-be-set-by-administrators": "Groups can only be set by administrators", "manage-groups": "Manage Groups", "user-group": "User Group", "user-group-created": "User Group Created", @@ -208,8 +204,7 @@ "page-update-failed": "Page update failed", "page-updated": "Page updated", "pages-update-failed": "Pages update failed", - "pages-updated": "Pages updated", - "recent": "Recent" + "pages-updated": "Pages updated" }, "recipe": { "add-key": "Add Key", @@ -241,7 +236,6 @@ "new-key-name": "New Key Name", "no-white-space-allowed": "No White Space Allowed", "note": "Note", - "notes": "Notes", "nutrition": "Nutrition", "object-key": "Object Key", "object-value": "Object Value", @@ -272,8 +266,7 @@ "sugar-content": "Sugar", "title": "Title", "total-time": "Total Time", - "unable-to-delete-recipe": "Unable to Delete Recipe", - "view-recipe": "View Recipe" + "unable-to-delete-recipe": "Unable to Delete Recipe" }, "reicpe": { "no-recipe": "No Recipe" @@ -294,7 +287,6 @@ "settings": { "add-a-new-theme": "Add a New Theme", "admin-settings": "Admin Settings", - "available-backups": "Available Backups", "backup": { "backup-created-at-response-export_path": "Backup Created at {path}", "backup-deleted": "Backup deleted", @@ -308,7 +300,6 @@ "delete-backup": "Delete Backup" }, "backup-and-exports": "Backups", - "backup-info": "Backups are exported in standard JSON format along with all the images stored on the file system. In your backup folder you'll find a .zip file that contains all of the recipe JSON and images from the database. Additionally, if you selected a markdown file, those will also be stored in the .zip file. To import a backup, it must be located in your backups folder. Automated backups are done each day at 3:00 AM.", "change-password": "Change Password", "current": "Version:", "custom-pages": "Custom Pages", @@ -341,12 +332,8 @@ "site-settings": "Site Settings", "theme": { "accent": "Accent", - "are-you-sure-you-want-to-delete-this-theme": "Are you sure you want to delete this theme?", - "choose-how-mealie-looks-to-you-set-your-theme-preference-to-follow-your-system-settings-or-choose-to-use-the-light-or-dark-theme": "Choose how Mealie looks to you. Set your theme preference to follow your system settings, or choose to use the light or dark theme.", "dark": "Dark", - "dark-mode": "Dark Mode", "default-to-system": "Default to system", - "delete-theme": "Delete Theme", "error": "Error", "error-creating-theme-see-log-file": "Error creating theme. See log file.", "error-deleting-theme": "Error deleting theme", @@ -364,7 +351,6 @@ "theme-name": "Theme Name", "theme-name-is-required": "Theme Name is required.", "theme-saved": "Theme Saved", - "theme-settings": "Theme Settings", "theme-updated": "Theme updated", "warning": "Warning" }, @@ -388,7 +374,6 @@ "unorganized": "Unorganized" }, "webhooks": { - "meal-planner-webhooks": "Meal Planner Webhooks", "test-webhooks": "Test Webhooks", "the-urls-listed-below-will-recieve-webhooks-containing-the-recipe-data-for-the-meal-plan-on-its-scheduled-day-currently-webhooks-will-execute-at": "The URLs listed below will receive webhooks containing the recipe data for the meal plan on it's scheduled day. Currently Webhooks will execute at", "webhook-url": "Webhook URL", @@ -406,7 +391,6 @@ "shopping-lists": "Shopping Lists" }, "signup": { - "display-name": "Display Name", "error-signing-up": "Error Signing Up", "sign-up": "Sign Up", "sign-up-link-created": "Sign up link created", @@ -443,7 +427,6 @@ "error-cannot-delete-super-user": "Error! Cannot Delete Super User", "existing-password-does-not-match": "Existing password does not match", "full-name": "Full Name", - "incorrect-username-or-password": "Incorrect username or password", "link-id": "Link ID", "link-name": "Link Name", "login": "Login", diff --git a/frontend/src/pages/HomePage.vue b/frontend/src/pages/HomePage.vue index 0aea6fec95ab..74b8449e824d 100644 --- a/frontend/src/pages/HomePage.vue +++ b/frontend/src/pages/HomePage.vue @@ -3,7 +3,7 @@