Skip to content

Commit 52c1b95

Browse files
committed
chore: Updated UISettings component where I replaced hardcoded strings with translation keys:
Replaced hardcoded strings with translation keys: Label: {t("settings:ui.kangarooAnimation.label")} Description: {t("settings:ui.kangarooAnimation.description")} Added translations for all the i8n locales (translated with ChatGPT-5).
1 parent a6f06dd commit 52c1b95

File tree

19 files changed

+74
-2
lines changed

19 files changed

+74
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ export const UISettings = ({
7171
checked={useKangarooAnimation}
7272
onChange={(e: any) => handleKangarooAnimationChange(e.target.checked)}
7373
data-testid="kangaroo-animation-checkbox">
74-
<span className="font-medium">Use Jumping Kangaroo Animation</span>
74+
<span className="font-medium">{t("settings:ui.kangarooAnimation.label")}</span>
7575
</VSCodeCheckbox>
7676
<div className="text-vscode-descriptionForeground text-sm ml-5 mt-1">
77-
Replace the default spinner with a jumping kangaroo animation for progress indicators
77+
{t("settings:ui.kangarooAnimation.description")}
7878
</div>
7979
</div>
8080
</div>

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

Lines changed: 4 additions & 0 deletions
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: 4 additions & 0 deletions
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
"collapseThinking": {
4343
"label": "Collapse Thinking messages by default",
4444
"description": "When enabled, thinking blocks will be collapsed by default until you interact with them"
45+
},
46+
"kangarooAnimation": {
47+
"label": "Use jumping Roo animation",
48+
"description": "Replace the default spinner with a jumping Roo animation for progress indicators"
4549
}
4650
},
4751
"prompts": {

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

Lines changed: 4 additions & 0 deletions
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: 4 additions & 0 deletions
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: 4 additions & 0 deletions
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: 4 additions & 0 deletions
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: 4 additions & 0 deletions
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: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)