Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 4a71b09

Browse files
committed
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
1 parent 988b1f6 commit 4a71b09

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

webview-ui/src/components/settings/IndexingSettings.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,8 @@ export const IndexingSettings = ({ codebaseIndexConfig, onConfigChange, ...props
660660
{/* Note about API keys */}
661661
<div className="mt-4 p-3 bg-vscode-inputValidation-infoBackground border border-vscode-inputValidation-infoBorder rounded">
662662
<p className="text-sm text-vscode-inputValidation-infoForeground m-0">
663-
<strong>Note:</strong> API keys for indexing providers (OpenAI, Gemini, Mistral, etc.)
664-
are configured in the Codebase Indexing popover accessible from the chat interface
665-
status bar.
663+
<strong>{t("settings:codeIndex.apiKeyNote.title")}</strong>{" "}
664+
{t("settings:codeIndex.apiKeyNote.description")}
666665
</p>
667666
</div>
668667
</div>

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@
196196
"baseUrlRequired": "Base URL is required",
197197
"modelDimensionMinValue": "Model dimension must be greater than 0"
198198
},
199-
"optional": "optional"
199+
"optional": "optional",
200+
"apiKeyNote": {
201+
"title": "Note:",
202+
"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."
203+
}
200204
},
201205
"autoApprove": {
202206
"description": "Run these actions without asking for permission. Only enable for actions you fully trust and if you understand the security risks.",

0 commit comments

Comments
 (0)