From b2d9c6c8b45164a63895e8b9854fc4827cfa4784 Mon Sep 17 00:00:00 2001 From: SkepticMystic Date: Sat, 28 Jun 2025 19:06:26 +0000 Subject: [PATCH] feat: recipe.please-wait-images-processing plural i18n string --- frontend/components/Layout/DefaultLayout.vue | 2 +- frontend/lang/messages/en-US.json | 3 ++- frontend/pages/g/[groupSlug]/r/create.vue | 2 +- frontend/pages/g/[groupSlug]/r/create/image.vue | 6 +++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/components/Layout/DefaultLayout.vue b/frontend/components/Layout/DefaultLayout.vue index 8a79d0560..12f0b0475 100644 --- a/frontend/components/Layout/DefaultLayout.vue +++ b/frontend/components/Layout/DefaultLayout.vue @@ -231,7 +231,7 @@ export default defineNuxtComponent({ { insertDivider: false, icon: $globals.icons.fileImage, - title: i18n.t("recipe.create-from-image"), + title: i18n.t("recipe.create-from-images"), subtitle: i18n.t("recipe.create-recipe-from-an-image"), to: `/g/${groupSlug.value}/r/create/image`, restricted: true, diff --git a/frontend/lang/messages/en-US.json b/frontend/lang/messages/en-US.json index 6273193c5..6c7ba4587 100644 --- a/frontend/lang/messages/en-US.json +++ b/frontend/lang/messages/en-US.json @@ -601,7 +601,8 @@ "crop-and-rotate-the-image": "Crop and rotate the image so that only the text is visible, and it's in the correct orientation.", "create-from-images": "Create from Images", "should-translate-description": "Translate the recipe into my language", - "please-wait-image-procesing": "Please wait, the image(s) are processing. This may take some time.", + "please-wait-image-procesing": "Please wait, the image is processing. This may take some time.", + "please-wait-images-processing": "Please wait, the images are processing. This may take some time.", "bulk-url-import": "Bulk URL Import", "debug-scraper": "Debug Scraper", "create-a-recipe-by-providing-the-name-all-recipes-must-have-unique-names": "Create a recipe by providing the name. All recipes must have unique names.", diff --git a/frontend/pages/g/[groupSlug]/r/create.vue b/frontend/pages/g/[groupSlug]/r/create.vue index 4dc0a9522..e91a7f9d4 100644 --- a/frontend/pages/g/[groupSlug]/r/create.vue +++ b/frontend/pages/g/[groupSlug]/r/create.vue @@ -80,7 +80,7 @@ export default defineNuxtComponent({ }, { icon: $globals.icons.fileImage, - text: i18n.t("recipe.create-from-image"), + text: i18n.t("recipe.create-from-images"), value: "image", hide: !enableOpenAIImages.value, }, diff --git a/frontend/pages/g/[groupSlug]/r/create/image.vue b/frontend/pages/g/[groupSlug]/r/create/image.vue index 20d69be40..09db2dc73 100644 --- a/frontend/pages/g/[groupSlug]/r/create/image.vue +++ b/frontend/pages/g/[groupSlug]/r/create/image.vue @@ -74,7 +74,11 @@ />

- {{ $t("recipe.please-wait-image-procesing") }} + {{ + uploadedImages.length > 1 + ? $t("recipe.please-wait-images-processing") + : $t("recipe.please-wait-image-procesing") + }}