Skip to content

Commit cc7e594

Browse files
committed
fix: add missing translation for Azure API version detection message
- Add translation key 'azureApiVersionDetected' to English locale - Update OpenAICompatible component to use translation function - Addresses Ellipsis bot comment about internationalization
1 parent 85215b0 commit cc7e594

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

webview-ui/src/components/settings/providers/OpenAICompatible.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,12 @@ export const OpenAICompatible = ({
203203
{t("settings:modelInfo.azureApiVersion")}
204204
</Checkbox>
205205
{showApiVersionExtraction && (
206-
<div className="text-sm text-vscode-descriptionForeground ml-6 mb-2">
207-
API version detected in Base URL: <strong>{extractedApiVersion}</strong>
208-
<br />
209-
This will be used automatically. Enable the checkbox above to override.
210-
</div>
206+
<div
207+
className="text-sm text-vscode-descriptionForeground ml-6 mb-2"
208+
dangerouslySetInnerHTML={{
209+
__html: t("settings:modelInfo.azureApiVersionDetected", { version: extractedApiVersion }),
210+
}}
211+
/>
211212
)}
212213
{azureApiVersionSelected && (
213214
<VSCodeTextField

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@
631631
"enableR1FormatTips": "Must be enabled when using R1 models such as QWQ to prevent 400 errors",
632632
"useAzure": "Use Azure",
633633
"azureApiVersion": "Set Azure API version",
634+
"azureApiVersionDetected": "API version detected in Base URL: <strong>{{version}}</strong><br />This will be used automatically. Enable the checkbox above to override.",
634635
"gemini": {
635636
"freeRequests": "* Free up to {{count}} requests per minute. After that, billing depends on prompt size.",
636637
"pricingDetails": "For more info, see pricing details.",

0 commit comments

Comments
 (0)