From 3f93501d9ea436e7d3b67aa13af677ea7c7e1e6c Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Fri, 23 Jan 2026 20:20:38 -0700 Subject: [PATCH] fix: update indexing API key note to use translation keys - Replace hardcoded English text with i18n translation keys - Add apiKeyNote.title and apiKeyNote.description to settings.json - Note explains that API keys are shared with provider configuration --- webview-ui/src/components/settings/IndexingSettings.tsx | 5 ++--- webview-ui/src/i18n/locales/en/settings.json | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/webview-ui/src/components/settings/IndexingSettings.tsx b/webview-ui/src/components/settings/IndexingSettings.tsx index dfe45b814c..afbf18c3db 100644 --- a/webview-ui/src/components/settings/IndexingSettings.tsx +++ b/webview-ui/src/components/settings/IndexingSettings.tsx @@ -660,9 +660,8 @@ export const IndexingSettings = ({ codebaseIndexConfig, onConfigChange, ...props {/* Note about API keys */}

- Note: API keys for indexing providers (OpenAI, Gemini, Mistral, etc.) - are configured in the Codebase Indexing popover accessible from the chat interface - status bar. + {t("settings:codeIndex.apiKeyNote.title")}{" "} + {t("settings:codeIndex.apiKeyNote.description")}

diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json index c8ad19171e..00e54679ec 100644 --- a/webview-ui/src/i18n/locales/en/settings.json +++ b/webview-ui/src/i18n/locales/en/settings.json @@ -197,7 +197,11 @@ "baseUrlRequired": "Base URL is required", "modelDimensionMinValue": "Model dimension must be greater than 0" }, - "optional": "optional" + "optional": "optional", + "apiKeyNote": { + "title": "Note:", + "description": "API keys for embedding providers are shared with your API provider configuration. If you're using OpenAI, Gemini, Mistral, or OpenRouter for indexing, ensure the corresponding API key is configured in your active provider profile." + } }, "autoApprove": { "description": "Run these actions without asking for permission. Only enable for actions you fully trust and if you understand the security risks.",