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
This commit is contained in:
Hannes Rudolph 2026-01-23 20:20:38 -07:00
parent 2b1e10c530
commit 3f93501d9e
2 changed files with 7 additions and 4 deletions

View file

@ -660,9 +660,8 @@ export const IndexingSettings = ({ codebaseIndexConfig, onConfigChange, ...props
{/* Note about API keys */}
<div className="mt-4 p-3 bg-vscode-inputValidation-infoBackground border border-vscode-inputValidation-infoBorder rounded">
<p className="text-sm text-vscode-inputValidation-infoForeground m-0">
<strong>Note:</strong> API keys for indexing providers (OpenAI, Gemini, Mistral, etc.)
are configured in the Codebase Indexing popover accessible from the chat interface
status bar.
<strong>{t("settings:codeIndex.apiKeyNote.title")}</strong>{" "}
{t("settings:codeIndex.apiKeyNote.description")}
</p>
</div>
</div>

View file

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