Skip to content

Commit 0199992

Browse files
committed
Translations
1 parent e85409f commit 0199992

File tree

19 files changed

+155
-25
lines changed

19 files changed

+155
-25
lines changed

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,18 @@ export const ImageGenerationSettings = ({
6161
<div className="ml-2 space-y-3">
6262
{/* API Key Configuration */}
6363
<div>
64-
<label className="block font-medium mb-1">OpenRouter API Key</label>
64+
<label className="block font-medium mb-1">
65+
{t("settings:experimental.IMAGE_GENERATION.openRouterApiKeyLabel")}
66+
</label>
6567
<VSCodeTextField
6668
value={openRouterApiKey}
6769
onInput={(e: any) => setOpenRouterApiKey(e.target.value)}
68-
placeholder="Enter your OpenRouter API key"
70+
placeholder={t("settings:experimental.IMAGE_GENERATION.openRouterApiKeyPlaceholder")}
6971
className="w-full"
7072
type="password"
7173
/>
7274
<p className="text-vscode-descriptionForeground text-xs mt-1">
73-
Get your API key from{" "}
75+
{t("settings:experimental.IMAGE_GENERATION.getApiKeyText")}{" "}
7476
<a
7577
href="https://openrouter.ai/keys"
7678
target="_blank"
@@ -83,7 +85,9 @@ export const ImageGenerationSettings = ({
8385

8486
{/* Model Selection */}
8587
<div>
86-
<label className="block font-medium mb-1">Image Generation Model</label>
88+
<label className="block font-medium mb-1">
89+
{t("settings:experimental.IMAGE_GENERATION.modelSelectionLabel")}
90+
</label>
8791
<VSCodeDropdown
8892
value={selectedModel}
8993
onChange={(e: any) => setSelectedModel(e.target.value)}
@@ -95,20 +99,20 @@ export const ImageGenerationSettings = ({
9599
))}
96100
</VSCodeDropdown>
97101
<p className="text-vscode-descriptionForeground text-xs mt-1">
98-
Select the model to use for image generation
102+
{t("settings:experimental.IMAGE_GENERATION.modelSelectionDescription")}
99103
</p>
100104
</div>
101105

102106
{/* Status Message */}
103107
{enabled && !openRouterApiKey && (
104108
<div className="p-2 bg-vscode-editorWarning-background text-vscode-editorWarning-foreground rounded text-sm">
105-
⚠️ OpenRouter API key is required for image generation. Please configure it above.
109+
{t("settings:experimental.IMAGE_GENERATION.warningMissingKey")}
106110
</div>
107111
)}
108112

109113
{enabled && openRouterApiKey && (
110114
<div className="p-2 bg-vscode-editorInfo-background text-vscode-editorInfo-foreground rounded text-sm">
111-
✓ Image generation is configured and ready to use
115+
{t("settings:experimental.IMAGE_GENERATION.successConfigured")}
112116
</div>
113117
)}
114118
</div>

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,14 @@
731731
},
732732
"IMAGE_GENERATION": {
733733
"name": "Enable AI image generation",
734-
"description": "When enabled, Roo can generate images from text prompts using OpenRouter's image generation models. Requires an OpenRouter API key to be configured."
734+
"description": "When enabled, Roo can generate images from text prompts using OpenRouter's image generation models. Requires an OpenRouter API key to be configured.",
735+
"openRouterApiKeyLabel": "OpenRouter API Key",
736+
"openRouterApiKeyPlaceholder": "Enter your OpenRouter API key",
737+
"getApiKeyText": "Get your API key from",
738+
"modelSelectionLabel": "Image Generation Model",
739+
"modelSelectionDescription": "Select the model to use for image generation",
740+
"warningMissingKey": "⚠️ OpenRouter API key is required for image generation. Please configure it above.",
741+
"successConfigured": "✓ Image generation is configured and ready to use"
735742
}
736743
},
737744
"promptCaching": {

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)