Skip to content

Commit

Permalink
Translate every_minutes with dynamic property
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Nov 16, 2023
1 parent 030e1cd commit d44de55
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"

},
Expand Down
41 changes: 18 additions & 23 deletions ui/src/components/CreateOrEditTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,29 +182,24 @@
<cv-dropdown-item selected value="">{{
$t("tasks.no_cron")
}}</cv-dropdown-item>
<cv-dropdown-item value="5m"
>{{ $t("tasks.every") }} 5
{{ $t("tasks.minutes") }}</cv-dropdown-item
>
<cv-dropdown-item value="10m"
>{{ $t("tasks.every") }} 10
{{ $t("tasks.minutes") }}</cv-dropdown-item
>
<cv-dropdown-item value="15m"
>{{ $t("tasks.every") }} 15
{{ $t("tasks.minutes") }}</cv-dropdown-item
>
<cv-dropdown-item value="30m"
>{{ $t("tasks.every") }} 30
{{ $t("tasks.minutes") }}</cv-dropdown-item
>
<cv-dropdown-item value="45m"
>{{ $t("tasks.every") }} 45
{{ $t("tasks.minutes") }}</cv-dropdown-item
>
<cv-dropdown-item value="1h"
>{{ $t("tasks.every") }} 1 {{ $t("tasks.hour") }}</cv-dropdown-item
>
<cv-dropdown-item value="5m">{{
$t("tasks.every_minutes", { num: 5 })
}}</cv-dropdown-item>
<cv-dropdown-item value="10m">{{
$t("tasks.every_minutes", { num: 10 })
}}</cv-dropdown-item>
<cv-dropdown-item value="15m">{{
$t("tasks.every_minutes", { num: 15 })
}}</cv-dropdown-item>
<cv-dropdown-item value="30m">{{
$t("tasks.every_minutes", { num: 30 })
}}</cv-dropdown-item>
<cv-dropdown-item value="45m">{{
$t("tasks.every_minutes", { num: 45 })
}}</cv-dropdown-item>
<cv-dropdown-item value="1h">{{
$t("tasks.every_minutes", { num: 60 })
}}</cv-dropdown-item>
</cv-dropdown>
</cv-form>
<cv-row v-if="error.createTask">
Expand Down

0 comments on commit d44de55

Please sign in to comment.