fix(i18n): use translation for API key error message

This commit is contained in:
kangfenmao 2025-02-12 18:24:39 +08:00
parent dcdb00eee7
commit 59c4d60d6a

View File

@ -219,7 +219,7 @@ export async function checkApi(provider: Provider, model: Model) {
window.message.error({ content: i18n.t('message.error.enter.api.key'), key, style })
return {
valid: false,
error: new Error('message.error.enter.api.key')
error: new Error(i18n.t('message.error.enter.api.key'))
}
}
}