Update openai.js: fix i18n

This commit is contained in:
Rivelle
2025-01-04 15:12:55 +08:00
committed by GitHub
parent 0a8fae06c2
commit 81cb3430bb

View File

@ -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;