From d44de552212c1db052449e7e9eab1360cd51dc36 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Thu, 16 Nov 2023 11:10:18 +0100 Subject: [PATCH] Translate every_minutes with dynamic property --- ui/public/i18n/en/translation.json | 2 +- ui/src/components/CreateOrEditTask.vue | 41 +++++++++++--------------- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json index 8d45d96..5f3500e 100644 --- a/ui/public/i18n/en/translation.json +++ b/ui/public/i18n/en/translation.json @@ -110,7 +110,7 @@ "something_wrong_cannot_list_informations": "Something went wront we cannot list the remote and account informations", "informations": "Informations", "fetching_statistic_please_wait":"Waiting to retrieve statictics, please wait", - "every":"every", + "every_minutes":"Every {num} minutes", "configure_imapsync": "Go to the settings" }, diff --git a/ui/src/components/CreateOrEditTask.vue b/ui/src/components/CreateOrEditTask.vue index 83dbcc0..3f4864d 100644 --- a/ui/src/components/CreateOrEditTask.vue +++ b/ui/src/components/CreateOrEditTask.vue @@ -182,29 +182,24 @@ {{ $t("tasks.no_cron") }} - {{ $t("tasks.every") }} 5 - {{ $t("tasks.minutes") }} - {{ $t("tasks.every") }} 10 - {{ $t("tasks.minutes") }} - {{ $t("tasks.every") }} 15 - {{ $t("tasks.minutes") }} - {{ $t("tasks.every") }} 30 - {{ $t("tasks.minutes") }} - {{ $t("tasks.every") }} 45 - {{ $t("tasks.minutes") }} - {{ $t("tasks.every") }} 1 {{ $t("tasks.hour") }} + {{ + $t("tasks.every_minutes", { num: 5 }) + }} + {{ + $t("tasks.every_minutes", { num: 10 }) + }} + {{ + $t("tasks.every_minutes", { num: 15 }) + }} + {{ + $t("tasks.every_minutes", { num: 30 }) + }} + {{ + $t("tasks.every_minutes", { num: 45 }) + }} + {{ + $t("tasks.every_minutes", { num: 60 }) + }}