diff --git a/public/script.js b/public/script.js index 6e7ef8fd8..f602a20ac 100644 --- a/public/script.js +++ b/public/script.js @@ -9884,7 +9884,7 @@ export async function renameChat(oldFileName, newName) { return; } if (equalsIgnoreCaseAndAccents(body.original_file, body.renamed_file)) { - toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename Chat'); + toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename Chat`); return; } diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js index 32d0ecbf9..5ddd42422 100644 --- a/public/scripts/preset-manager.js +++ b/public/scripts/preset-manager.js @@ -896,7 +896,7 @@ export async function initPresetManager() { return; } if (equalsIgnoreCaseAndAccents(oldName, newName)) { - toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename Preset'); + toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename Preset`); return; } diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index b3985aad4..c1ff586a3 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -3587,7 +3587,7 @@ async function renameWorldInfo(name, data) { return; } if (equalsIgnoreCaseAndAccents(oldName, newName)) { - toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename World Info'); + toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename World Info`); return; }