From c522baf4f7889a8d1324ec7d8443758a66fa161a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 9 Apr 2025 19:18:05 +0300 Subject: [PATCH] Make texts translatable --- public/script.js | 2 +- public/scripts/preset-manager.js | 2 +- public/scripts/world-info.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; }