Localization (#568)

* Translate 404 pages

* Remove unused strings
This commit is contained in:
sephrat 2021-06-18 15:09:02 +02:00 committed by GitHub
parent b25282aef1
commit 67563da67b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 35 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<The404> <The404>
<h1 class="mx-auto">No Recipe Found</h1> <h1 class="mx-auto">{{ $t('general.no-recipe-found') }}</h1>
</The404> </The404>
</div> </div>
</template> </template>

View File

@ -29,15 +29,15 @@
<script> <script>
export default { export default {
data() { computed: {
return { buttons() {
buttons: [ return[
{ icon: this.$globals.icons.home, to: "/", text: "Home" }, { icon: this.$globals.icons.home, to: "/", text: this.$t('general.home') },
{ icon: this.$globals.icons.primary, to: "/recipes/all", text: "All Recipes" }, { icon: this.$globals.icons.primary, to: "/recipes/all", text: this.$t('page.all-recipes') },
{ icon: this.$globals.icons.search, to: "/search", text: "Search" }, { icon: this.$globals.icons.search, to: "/search", text: this.$t('search.search') },
], ];
}; },
}, }
}; };
</script> </script>

View File

@ -1,8 +1,4 @@
{ {
"404": {
"page-not-found": "404 Page Not Found",
"take-me-home": "Take me Home"
},
"about": { "about": {
"about": "About", "about": "About",
"about-mealie": "About Mealie", "about-mealie": "About Mealie",
@ -41,7 +37,9 @@
"apprise-url": "Apprise URL", "apprise-url": "Apprise URL",
"database": "Database", "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-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", "notification": "Notification",
"refresh": "Refresh",
"scheduled": "Scheduled", "scheduled": "Scheduled",
"something-went-wrong": "Something Went Wrong!", "something-went-wrong": "Something Went Wrong!",
"subscribed-events": "Subscribed Events", "subscribed-events": "Subscribed Events",
@ -51,7 +49,6 @@
"delete-event": "Delete Event" "delete-event": "Delete Event"
}, },
"general": { "general": {
"apply": "Apply",
"cancel": "Cancel", "cancel": "Cancel",
"clear": "Clear", "clear": "Clear",
"close": "Close", "close": "Close",
@ -79,15 +76,14 @@
"friday": "Friday", "friday": "Friday",
"general": "General", "general": "General",
"get": "Get", "get": "Get",
"home": "Home",
"image": "Image", "image": "Image",
"image-upload-failed": "Image upload failed", "image-upload-failed": "Image upload failed",
"import": "Import", "import": "Import",
"json": "JSON", "json": "JSON",
"keyword": "Keyword", "keyword": "Keyword",
"link": "Link",
"link-copied": "Link Copied", "link-copied": "Link Copied",
"monday": "Monday", "monday": "Monday",
"more": "More",
"name": "Name", "name": "Name",
"new": "New", "new": "New",
"no": "No", "no": "No",
@ -125,7 +121,8 @@
"url": "URL", "url": "URL",
"view": "View", "view": "View",
"wednesday": "Wednesday", "wednesday": "Wednesday",
"yes": "Yes" "yes": "Yes",
"no-recipe-found": "No Recipe Found"
}, },
"group": { "group": {
"are-you-sure-you-want-to-delete-the-group": "Are you sure you want to delete <b>{groupName}<b/>?", "are-you-sure-you-want-to-delete-the-group": "Are you sure you want to delete <b>{groupName}<b/>?",
@ -141,7 +138,6 @@
"group-name": "Group Name", "group-name": "Group Name",
"group-not-found": "Group not found", "group-not-found": "Group not found",
"groups": "Groups", "groups": "Groups",
"groups-can-only-be-set-by-administrators": "Groups can only be set by administrators",
"manage-groups": "Manage Groups", "manage-groups": "Manage Groups",
"user-group": "User Group", "user-group": "User Group",
"user-group-created": "User Group Created", "user-group-created": "User Group Created",
@ -208,8 +204,7 @@
"page-update-failed": "Page update failed", "page-update-failed": "Page update failed",
"page-updated": "Page updated", "page-updated": "Page updated",
"pages-update-failed": "Pages update failed", "pages-update-failed": "Pages update failed",
"pages-updated": "Pages updated", "pages-updated": "Pages updated"
"recent": "Recent"
}, },
"recipe": { "recipe": {
"add-key": "Add Key", "add-key": "Add Key",
@ -241,7 +236,6 @@
"new-key-name": "New Key Name", "new-key-name": "New Key Name",
"no-white-space-allowed": "No White Space Allowed", "no-white-space-allowed": "No White Space Allowed",
"note": "Note", "note": "Note",
"notes": "Notes",
"nutrition": "Nutrition", "nutrition": "Nutrition",
"object-key": "Object Key", "object-key": "Object Key",
"object-value": "Object Value", "object-value": "Object Value",
@ -272,8 +266,7 @@
"sugar-content": "Sugar", "sugar-content": "Sugar",
"title": "Title", "title": "Title",
"total-time": "Total Time", "total-time": "Total Time",
"unable-to-delete-recipe": "Unable to Delete Recipe", "unable-to-delete-recipe": "Unable to Delete Recipe"
"view-recipe": "View Recipe"
}, },
"reicpe": { "reicpe": {
"no-recipe": "No Recipe" "no-recipe": "No Recipe"
@ -294,7 +287,6 @@
"settings": { "settings": {
"add-a-new-theme": "Add a New Theme", "add-a-new-theme": "Add a New Theme",
"admin-settings": "Admin Settings", "admin-settings": "Admin Settings",
"available-backups": "Available Backups",
"backup": { "backup": {
"backup-created-at-response-export_path": "Backup Created at {path}", "backup-created-at-response-export_path": "Backup Created at {path}",
"backup-deleted": "Backup deleted", "backup-deleted": "Backup deleted",
@ -308,7 +300,6 @@
"delete-backup": "Delete Backup" "delete-backup": "Delete Backup"
}, },
"backup-and-exports": "Backups", "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", "change-password": "Change Password",
"current": "Version:", "current": "Version:",
"custom-pages": "Custom Pages", "custom-pages": "Custom Pages",
@ -341,12 +332,8 @@
"site-settings": "Site Settings", "site-settings": "Site Settings",
"theme": { "theme": {
"accent": "Accent", "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": "Dark",
"dark-mode": "Dark Mode",
"default-to-system": "Default to system", "default-to-system": "Default to system",
"delete-theme": "Delete Theme",
"error": "Error", "error": "Error",
"error-creating-theme-see-log-file": "Error creating theme. See log file.", "error-creating-theme-see-log-file": "Error creating theme. See log file.",
"error-deleting-theme": "Error deleting theme", "error-deleting-theme": "Error deleting theme",
@ -364,7 +351,6 @@
"theme-name": "Theme Name", "theme-name": "Theme Name",
"theme-name-is-required": "Theme Name is required.", "theme-name-is-required": "Theme Name is required.",
"theme-saved": "Theme Saved", "theme-saved": "Theme Saved",
"theme-settings": "Theme Settings",
"theme-updated": "Theme updated", "theme-updated": "Theme updated",
"warning": "Warning" "warning": "Warning"
}, },
@ -388,7 +374,6 @@
"unorganized": "Unorganized" "unorganized": "Unorganized"
}, },
"webhooks": { "webhooks": {
"meal-planner-webhooks": "Meal Planner Webhooks",
"test-webhooks": "Test 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", "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", "webhook-url": "Webhook URL",
@ -406,7 +391,6 @@
"shopping-lists": "Shopping Lists" "shopping-lists": "Shopping Lists"
}, },
"signup": { "signup": {
"display-name": "Display Name",
"error-signing-up": "Error Signing Up", "error-signing-up": "Error Signing Up",
"sign-up": "Sign Up", "sign-up": "Sign Up",
"sign-up-link-created": "Sign up link created", "sign-up-link-created": "Sign up link created",
@ -443,7 +427,6 @@
"error-cannot-delete-super-user": "Error! Cannot Delete Super User", "error-cannot-delete-super-user": "Error! Cannot Delete Super User",
"existing-password-does-not-match": "Existing password does not match", "existing-password-does-not-match": "Existing password does not match",
"full-name": "Full Name", "full-name": "Full Name",
"incorrect-username-or-password": "Incorrect username or password",
"link-id": "Link ID", "link-id": "Link ID",
"link-name": "Link Name", "link-name": "Link Name",
"login": "Login", "login": "Login",

View File

@ -3,7 +3,7 @@
<CardSection <CardSection
title-icon="mdi-none" title-icon="mdi-none"
v-if="siteSettings.showRecent" v-if="siteSettings.showRecent"
:title="$t('page.recent')" :title="$t('general.recent')"
:recipes="recentRecipes" :recipes="recentRecipes"
:hard-limit="siteSettings.cardsPerSection" :hard-limit="siteSettings.cardsPerSection"
/> />