i18n(time_selector): translate invalid_input message

This commit is contained in:
Panagiotis Papadopoulos 2025-02-16 14:10:13 +01:00
parent f672054441
commit 35a3d326f7
2 changed files with 4 additions and 2 deletions

View File

@ -116,8 +116,7 @@ export default class TimeSelector extends OptionsWidget {
handleTimeValidation() {
if (this.$timeValueInput.is(":invalid")) {
// TriliumNextTODO: i18n
toastService.showMessage("The entered time value is not a valid number.");
toastService.showMessage(t("time_selector.invalid_input"));
return false
}
return true;

View File

@ -1655,5 +1655,8 @@
"minutes": "Minutes",
"hours": "Hours",
"days": "Days"
},
"time_selector": {
"invalid_input": "The entered time value is not a valid number."
}
}