fix(i18n): use translation for API key error message
This commit is contained in:
parent
dcdb00eee7
commit
59c4d60d6a
@ -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 })
|
window.message.error({ content: i18n.t('message.error.enter.api.key'), key, style })
|
||||||
return {
|
return {
|
||||||
valid: false,
|
valid: false,
|
||||||
error: new Error('message.error.enter.api.key')
|
error: new Error(i18n.t('message.error.enter.api.key'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user