From 42a6e6394d38709a80cf41b91e2c506e2ca8b78e Mon Sep 17 00:00:00 2001 From: Florian Dupret <34862846+sephrat@users.noreply.github.com> Date: Fri, 30 Apr 2021 09:00:14 +0200 Subject: [PATCH] Translate recipe settings --- .../Recipe/Parts/Helpers/SettingsMenu.vue | 22 +++++++++++-------- frontend/src/locales/messages/en-US.json | 5 +++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/Recipe/Parts/Helpers/SettingsMenu.vue b/frontend/src/components/Recipe/Parts/Helpers/SettingsMenu.vue index 75445f160..24464579f 100644 --- a/frontend/src/components/Recipe/Parts/Helpers/SettingsMenu.vue +++ b/frontend/src/components/Recipe/Parts/Helpers/SettingsMenu.vue @@ -12,7 +12,7 @@
- Recipe Settings + {{$t('recipe.recipe-settings')}}
@@ -39,14 +39,18 @@ export default { props: { value: Object, }, - data: () => ({ - labels: { - public: "Public Recipe", - showNutrition: "Show Nutrition Values", - showAssets: "Show Assets", - landscapeView: "Landscape View (Coming Soon)", - }, - }), + + computed: { + labels() { + return { + public: this.$t('recipe.public-recipe'), + showNutrition: this.$t('recipe.show-nutrition-values'), + showAssets: this.$t('recipe.show-assets'), + landscapeView: this.$t('recipe.landscape-view-coming-soon'), + }; + } + }, + methods: {}, }; diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index 5783a4637..446fe4b86 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -180,6 +180,7 @@ "ingredients": "Ingredients", "instructions": "Instructions", "key-name-required": "Key Name Required", + "landscape-view-coming-soon": "Landscape View (Coming Soon)", "milligrams": "milligrams", "new-asset": "New Asset", "new-key-name": "New Key Name", @@ -193,15 +194,19 @@ "perform-time": "Cook Time", "prep-time": "Prep Time", "protein-content": "Protein", + "public-recipe": "Public Recipe", "recipe-created": "Recipe created", "recipe-creation-failed": "Recipe creation failed", "recipe-deleted": "Recipe deleted", "recipe-image": "Recipe Image", "recipe-image-updated": "Recipe image updated", "recipe-name": "Recipe Name", + "recipe-settings": "Recipe Settings", "recipe-update-failed": "Recipe update failed", "recipe-updated": "Recipe updated", "servings": "Servings", + "show-assets": "Show Assets", + "show-nutrition-values": "Show Nutrition Values", "sodium-content": "Sodium", "step-index": "Step: {step}", "sugar-content": "Sugar",