add missing translations

This commit is contained in:
perf3ct 2025-04-05 00:52:32 +00:00
parent 14705eb1c5
commit 9f66a9b413
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
2 changed files with 9 additions and 4 deletions

View File

@ -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"));
}
}

View File

@ -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",