mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
add missing translations
This commit is contained in:
parent
14705eb1c5
commit
9f66a9b413
@ -202,7 +202,7 @@ export default class AiSettingsWidget extends OptionsWidget {
|
||||
if (providerPrecedence.includes('openai')) {
|
||||
const openaiApiKey = this.$widget.find('.openai-api-key').val();
|
||||
if (!openaiApiKey) {
|
||||
openaiWarnings.push(t("ai_llm.warning_openai_missing_api_key"));
|
||||
openaiWarnings.push(t("ai_llm.empty_key_warning.openai"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -211,7 +211,7 @@ export default class AiSettingsWidget extends OptionsWidget {
|
||||
if (providerPrecedence.includes('anthropic')) {
|
||||
const anthropicApiKey = this.$widget.find('.anthropic-api-key').val();
|
||||
if (!anthropicApiKey) {
|
||||
anthropicWarnings.push(t("ai_llm.warning_anthropic_missing_api_key"));
|
||||
anthropicWarnings.push(t("ai_llm.empty_key_warning.anthropic"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -220,7 +220,7 @@ export default class AiSettingsWidget extends OptionsWidget {
|
||||
if (providerPrecedence.includes('voyage')) {
|
||||
const voyageApiKey = this.$widget.find('.voyage-api-key').val();
|
||||
if (!voyageApiKey) {
|
||||
voyageWarnings.push(t("ai_llm.warning_voyage_missing_api_key"));
|
||||
voyageWarnings.push(t("ai_llm.empty_key_warning.voyage"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1888,7 +1888,12 @@
|
||||
"api_key": "API Key",
|
||||
"api_key_tooltip": "API key for accessing the service",
|
||||
"confirm_delete_embeddings": "Are you sure you want to delete all AI embeddings? This will remove all semantic search capabilities until notes are reindexed, which can take a significant amount of time.",
|
||||
"empty_key_warning": "Warning: Empty API key. You need to configure your API key in settings.",
|
||||
"empty_key_warning": {
|
||||
"anthropic": "Anthropic API key is empty. Please enter a valid API key.",
|
||||
"openai": "OpenAI API key is empty. Please enter a valid API key.",
|
||||
"voyage": "Voyage API key is empty. Please enter a valid API key.",
|
||||
"ollama": "Ollama API key is empty. Please enter a valid API key."
|
||||
},
|
||||
"enable_ai": "Enable AI Features",
|
||||
"name": "AI",
|
||||
"openai": "OpenAI",
|
||||
|
Loading…
x
Reference in New Issue
Block a user