From cced670aa48f70909e1d19122db3fd3453332ce3 Mon Sep 17 00:00:00 2001 From: vishnuraghavb Date: Fri, 16 Apr 2021 10:20:04 +0530 Subject: [PATCH] placeholder for required strings --- app/components/ViewRecipe.vue | 2 +- app/i18n/en-GB.default.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/ViewRecipe.vue b/app/components/ViewRecipe.vue index f0091247..8e2f0fad 100644 --- a/app/components/ViewRecipe.vue +++ b/app/components/ViewRecipe.vue @@ -433,7 +433,7 @@ export default { changeYield() { this.$showModal(PromptDialog, { props: { - title: `${localize("req")} ${localize(this.recipe.yield.unit)}`, + title: `${localize("req", localize(this.recipe.yield.unit))}`, placeholder: Math.abs(parseFloat(this.yieldMultiplier)), action: "SET", }, diff --git a/app/i18n/en-GB.default.json b/app/i18n/en-GB.default.json index bfcd6155..859a3975 100644 --- a/app/i18n/en-GB.default.json +++ b/app/i18n/en-GB.default.json @@ -155,7 +155,7 @@ "rmCmb": "Combination removed", "nwYiU": "New yield unit", "nwCat": "New category", - "req": "Required", + "req": "Required %s", "recPic": "Recipe photo", "cPic": "Crop photo", "breakfast": "Breakfast",