From 81cb3430bb6c7084e2bc9bc1ad91f60444c522cd Mon Sep 17 00:00:00 2001 From: Rivelle Date: Sat, 4 Jan 2025 15:12:55 +0800 Subject: [PATCH 1/2] Update openai.js: fix i18n --- public/scripts/openai.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 0b4d3333b..91970399e 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -3335,7 +3335,7 @@ async function getStatusOpen() { chat_completion_sources.GROQ, ]; if (noValidateSources.includes(oai_settings.chat_completion_source)) { - let status = 'Unable to verify key; press "Test Message" to validate.'; + let status = t`Unable to verify key; press \"Test Message\" to validate.`; setOnlineStatus(status); return resultCheckStatus(); } @@ -3813,7 +3813,7 @@ function onLogitBiasPresetExportClick() { } async function onDeletePresetClick() { - const confirm = await callPopup('Delete the preset? This action is irreversible and your current settings will be overwritten.', 'confirm'); + const confirm = await callPopup(t`Delete the preset? This action is irreversible and your current settings will be overwritten.`, 'confirm'); if (!confirm) { return; From fae11fc04a7785830bf0e9544baa17edf8b8fe58 Mon Sep 17 00:00:00 2001 From: Rivelle Date: Sat, 4 Jan 2025 15:14:14 +0800 Subject: [PATCH 2/2] Update personas.js: fix i18n --- public/scripts/personas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/personas.js b/public/scripts/personas.js index 930e87a4e..69558fb7b 100644 --- a/public/scripts/personas.js +++ b/public/scripts/personas.js @@ -892,7 +892,7 @@ async function setDefaultPersona(e) { } delete power_user.default_persona; } else { - const confirm = await Popup.show.confirm(t`Are you sure you want to set "${personaName}" as the default persona?`, t`This name and avatar will be used for all new chats, as well as existing chats where the user persona is not locked.`); + const confirm = await Popup.show.confirm(t`Are you sure you want to set \"${personaName}\" as the default persona?`, t`This name and avatar will be used for all new chats, as well as existing chats where the user persona is not locked.`); if (!confirm) { console.debug('User cancelled setting default persona');