Skip to content

Commit d45ef4e

Browse files
committed
feat(About): translate aria-label
1 parent 6f8550f commit d45ef4e

20 files changed

Lines changed: 40 additions & 19 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export const About = ({ telemetrySetting, setTelemetrySetting, debug, setDebug,
261261
<div
262262
className="h-2 overflow-hidden rounded-full bg-[var(--vscode-editorWidget-border)]"
263263
role="progressbar"
264-
aria-label="Roo history import progress"
264+
aria-label={t("settings:about.rooHistoryImport.progressAriaLabel")}
265265
aria-valuemin={0}
266266
aria-valuemax={100}
267267
aria-valuenow={importProgressPercent}>

webview-ui/src/components/settings/__tests__/About.spec.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ describe("About", () => {
187187

188188
expect(screen.getByText("settings:about.rooHistoryImport.statusImporting")).toBeInTheDocument()
189189
expect(screen.getByText("25%")).toBeInTheDocument()
190+
expect(
191+
screen.getByRole("progressbar", { name: "settings:about.rooHistoryImport.progressAriaLabel" }),
192+
).toHaveAttribute("aria-valuenow", "25")
190193
expect(screen.getByText("settings:about.rooHistoryImport.summaryCopied")).toBeInTheDocument()
191194
expect(screen.getByText("settings:about.rooHistoryImport.detailTasksImported")).toBeInTheDocument()
192195
})

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

Lines changed: 2 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: 2 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"detailFailed": "Start a new import attempt to try again.",
7979
"detailTasksImported_one": "Imported {{count}} of {{total}} task history.",
8080
"detailTasksImported_other": "Imported {{count}} of {{total}} task histories.",
81-
"detailPreparing": "Preparing Roo Code history import."
81+
"detailPreparing": "Preparing Roo Code history import.",
82+
"progressAriaLabel": "Roo history import progress"
8283
}
8384
},
8485
"slashCommands": {

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

Lines changed: 2 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: 2 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: 2 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: 2 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: 2 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)