mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 12:11:41 +08:00
i18n(time_selector): add i18n for minimum_input
This commit is contained in:
parent
ce1f418aa7
commit
a0c2715980
@ -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;
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user