From 465b6795587fdfa0f8ba5f1d2adf35081b366242 Mon Sep 17 00:00:00 2001 From: Matthias Borremans Date: Sat, 5 Jun 2021 15:19:08 +0200 Subject: [PATCH] Add translation --- frontend/src/components/Recipe/ContextMenu.vue | 4 ++-- frontend/src/locales/messages/en-US.json | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Recipe/ContextMenu.vue b/frontend/src/components/Recipe/ContextMenu.vue index fb5afb4d6..99725d9fd 100644 --- a/frontend/src/components/Recipe/ContextMenu.vue +++ b/frontend/src/components/Recipe/ContextMenu.vue @@ -68,7 +68,7 @@ export default { action: "print", }, { - title: this.$t("Share"), + title: this.$t("general.share"), icon: "mdi-share-variant", color: "accent", action: "share", @@ -93,7 +93,7 @@ export default { ]; }, recipeText() { - return this.$t(`I wanted to share you my {0} recipe.`, [this.name]); + return this.$t("recipe.share-recipe-message", [this.name]); }, }, data() { diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index fafb5e2bc..0859b6d62 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -96,6 +96,7 @@ "saturday": "Saturday", "save": "Save", "settings": "Settings", + "share": "Share", "shuffle": "Shuffle", "sort": "Sort", "sort-alphabetically": "Alphabetical", @@ -214,6 +215,7 @@ "ingredient": "Ingredient", "ingredients": "Ingredients", "instructions": "Instructions", + "share-recipe-message": "I wanted to share you my {0} recipe.", "key-name-required": "Key Name Required", "landscape-view-coming-soon": "Landscape View (Coming Soon)", "milligrams": "milligrams", @@ -249,6 +251,7 @@ "total-time": "Total Time", "unable-to-delete-recipe": "Unable to Delete Recipe", "view-recipe": "View Recipe" + }, "search": { "and": "and",