From 5c035ec64466fd47208eb3c76236d4b7f63737a3 Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Sun, 30 May 2021 01:25:20 +0200 Subject: [PATCH] Localize new strings (#445) --- .../MealPlan/ShoppingListDialog.vue | 2 +- .../components/UI/Buttons/TheCopyButton.vue | 2 +- frontend/src/components/UI/LogCard.vue | 2 +- frontend/src/components/UI/TheSidebar.vue | 2 +- frontend/src/components/UI/TheSiteMenu.vue | 2 +- frontend/src/locales/messages/en-US.json | 26 ++++++++++++++++--- frontend/src/pages/Admin/About/index.vue | 8 +++--- .../pages/Admin/Profile/ProfileGroupCard.vue | 2 +- .../pages/Admin/ToolBox/RecipeOrganizer.vue | 2 +- frontend/src/pages/MealPlan/Planner.vue | 6 ++--- frontend/src/pages/ShoppingList/index.vue | 20 ++++++++------ 11 files changed, 48 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/MealPlan/ShoppingListDialog.vue b/frontend/src/components/MealPlan/ShoppingListDialog.vue index 13203bd40..d66d27219 100644 --- a/frontend/src/components/MealPlan/ShoppingListDialog.vue +++ b/frontend/src/components/MealPlan/ShoppingListDialog.vue @@ -3,7 +3,7 @@ - {{ $t("meal-plan.shopping-list") }} + {{ $t("shopping-list.shopping-list") }} {{ $t("meal-plan.group") }} diff --git a/frontend/src/components/UI/Buttons/TheCopyButton.vue b/frontend/src/components/UI/Buttons/TheCopyButton.vue index aa8eb557e..705322898 100644 --- a/frontend/src/components/UI/Buttons/TheCopyButton.vue +++ b/frontend/src/components/UI/Buttons/TheCopyButton.vue @@ -27,7 +27,7 @@ mdi-clipboard-check - {{ $t("general.coppied") }}! + {{ $t("general.copied") }}! diff --git a/frontend/src/components/UI/LogCard.vue b/frontend/src/components/UI/LogCard.vue index 2650a5517..0942d495c 100644 --- a/frontend/src/components/UI/LogCard.vue +++ b/frontend/src/components/UI/LogCard.vue @@ -7,7 +7,7 @@ - Support + {{$t('about.support')}} diff --git a/frontend/src/components/UI/TheSiteMenu.vue b/frontend/src/components/UI/TheSiteMenu.vue index f24541f41..ee6bf3e48 100644 --- a/frontend/src/components/UI/TheSiteMenu.vue +++ b/frontend/src/components/UI/TheSiteMenu.vue @@ -65,7 +65,7 @@ export default { }, { icon: "mdi-format-list-checks", - title: "Shopping Lists", + title: this.$t('shopping-list.shopping-lists'), nav: "/shopping-list", restricted: true, }, diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index b8b6914ff..fafb5e2bc 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -14,10 +14,15 @@ "demo": "Demo", "demo-status": "Demo Status", "development": "Development", + "docs": "Docs", "download-log": "Download Log", "download-recipe-json": "Last Scraped JSON", + "github": "Github", + "log-lines": "Log Lines", "not-demo": "Not Demo", + "portfolio": "Portfolio", "production": "Production", + "support": "Support", "version": "Version" }, "category": { @@ -47,9 +52,9 @@ "clear": "Clear", "close": "Close", "confirm": "Confirm", + "copied": "Copied", "create": "Create", "created": "Created", - "coppied": "Coppied", "current-parenthesis": "(Current)", "custom": "Custom", "dashboard": "Dashboard", @@ -73,6 +78,7 @@ "import": "Import", "keyword": "Keyword", "link": "Link", + "link-copied": "Link Copied", "monday": "Monday", "name": "Name", "new": "New", @@ -108,6 +114,7 @@ "updated": "Updated", "upload": "Upload", "url": "URL", + "view": "View", "wednesday": "Wednesday", "yes": "Yes" }, @@ -154,7 +161,6 @@ "only-recipes-with-these-categories-will-be-used-in-meal-plans": "Only recipes with these categories will be used in Meal Plans", "planner": "Planner", "quick-week": "Quick Week", - "shopping-list": "Shopping List", "start-date": "Start Date" }, "migration": { @@ -345,7 +351,8 @@ "recipes-affected": "No Recipes Affected|One Recipe Affected|{count} Recipes Affected", "remove-unused": "Remove Unused", "title-case-all": "Title Case All", - "toolbox": "Toolbox" + "toolbox": "Toolbox", + "unorganized": "Unorganized" }, "webhooks": { "meal-planner-webhooks": "Meal Planner Webhooks", @@ -355,6 +362,16 @@ "webhooks-caps": "WEBHOOKS" } }, + "shopping-list": { + "all-lists": "All Lists", + "create-shopping-list": "Create Shopping List", + "from-recipe": "From Recipe", + "list-name": "List Name", + "new-list": "New List", + "quantity": "Quantity: {0}", + "shopping-list": "Shopping List", + "shopping-lists": "Shopping Lists" + }, "signup": { "display-name": "Display Name", "error-signing-up": "Error Signing Up", @@ -377,7 +394,6 @@ "untagged-count": "Untagged {count}" }, "user": { - "username": "Username", "admin": "Admin", "are-you-sure-you-want-to-delete-the-link": "Are you sure you want to delete the link {link}?", "are-you-sure-you-want-to-delete-the-user": "Are you sure you want to delete the user {activeName} ID: {activeId}?", @@ -423,7 +439,9 @@ "user-successfully-logged-in": "User Successfully Logged In", "user-update-failed": "User update failed", "user-updated": "User updated", + "username": "Username", "users": "Users", + "users-header": "USERS", "webhook-time": "Webhook Time", "webhooks-enabled": "Webhooks Enabled", "you-are-not-allowed-to-create-a-user": "You are not allowed to create a user", diff --git a/frontend/src/pages/Admin/About/index.vue b/frontend/src/pages/Admin/About/index.vue index be086065c..150bdb9b1 100644 --- a/frontend/src/pages/Admin/About/index.vue +++ b/frontend/src/pages/Admin/About/index.vue @@ -6,25 +6,25 @@ mdi-heart - Support + {{$t('about.support')}} mdi-github - Github + {{$t('about.github')}} mdi-account - Portfolio + {{$t('about.portfolio')}} mdi-folder-outline - Docs + {{$t('about.docs')}} diff --git a/frontend/src/pages/Admin/Profile/ProfileGroupCard.vue b/frontend/src/pages/Admin/Profile/ProfileGroupCard.vue index 6f1ea9fdd..da7f20e09 100644 --- a/frontend/src/pages/Admin/Profile/ProfileGroupCard.vue +++ b/frontend/src/pages/Admin/Profile/ProfileGroupCard.vue @@ -21,7 +21,7 @@ /> - USERS + {{$t('user.users-header')}} diff --git a/frontend/src/pages/Admin/ToolBox/RecipeOrganizer.vue b/frontend/src/pages/Admin/ToolBox/RecipeOrganizer.vue index 34c7f4513..d3d710159 100644 --- a/frontend/src/pages/Admin/ToolBox/RecipeOrganizer.vue +++ b/frontend/src/pages/Admin/ToolBox/RecipeOrganizer.vue @@ -15,7 +15,7 @@ - + diff --git a/frontend/src/pages/MealPlan/Planner.vue b/frontend/src/pages/MealPlan/Planner.vue index 73b916ca5..57c37152a 100644 --- a/frontend/src/pages/MealPlan/Planner.vue +++ b/frontend/src/pages/MealPlan/Planner.vue @@ -22,7 +22,7 @@ mdi-cart-check - Create Shopping List + {{$t('shopping-list.create-shopping-list')}} mdi-cart-check - Shopping List + {{$t('shopping-list.shopping-list')}} - Link Coppied + {{$t('general.link-copied')}} diff --git a/frontend/src/pages/ShoppingList/index.vue b/frontend/src/pages/ShoppingList/index.vue index e966205b3..92a068f59 100644 --- a/frontend/src/pages/ShoppingList/index.vue +++ b/frontend/src/pages/ShoppingList/index.vue @@ -5,19 +5,23 @@ mdi-arrow-left-bold - All Lists + {{$t('shopping-list.all-lists')}} mdi-format-list-checks - Shopping Lists + {{$t('shopping-list.shopping-lists')}} - + - + @@ -37,7 +41,7 @@ mdi-cart-check - View + {{$t('general.view')}} @@ -61,7 +65,7 @@ -

Quantity: {{ item.quantity }}

+

{{$t('shopping-list.quantity', [item.quantity])}}

@@ -119,13 +123,13 @@ {{ $globals.icons.primary }} - From Recipe + {{$t('shopping-list.from-recipe')}} {{ $globals.icons.create }} - New + {{$t('general.new')}}