i18n(time_selector): add i18n for minimum_input

This commit is contained in:
Panagiotis Papadopoulos 2025-02-18 22:26:32 +01:00
parent ce1f418aa7
commit a0c2715980
2 changed files with 3 additions and 2 deletions

View File

@ -131,7 +131,7 @@ export default class TimeSelector extends OptionsWidget {
private setInternalTimeInSeconds(time: number) {
if (time < this.minimumSeconds) {
toastService.showError(`Entered time needs to be at least ${this.minimumSeconds} seconds.`);
toastService.showError(t("time_selector.minimum_input", {minimumSeconds: this.minimumSeconds}));
return this.internalTimeInSeconds = this.minimumSeconds;
}
return this.internalTimeInSeconds = time;

View File

@ -1656,6 +1656,7 @@
"days": "Days"
},
"time_selector": {
"invalid_input": "The entered time value is not a valid number."
"invalid_input": "The entered time value is not a valid number.",
"minimum_input": "The entered time value needs to be at least {{minimumSeconds}} seconds."
}
}