Translate remaining hardcoded aria-labels - #444
Conversation
|
Thanks for the first pull request here. CI needs a maintainer to approve the run before it starts, so it may sit for a bit before anything happens. |
|
Thanks, this is clean: the keys are namespaced where they belong and the diff in CI fails on one thing, and it is my fault, not yours. The issue said other languages fall back to English, so What is left is adding the same 14 keys to the other nine files in
|
|
One update since my last comment: #439 has merged and it added some of the same keys under |
9a99daa to
2f18c75
Compare
|
Rebased on main. The aria-labels now reuse the keys from #439 (topbar.watchlists, getFirefoxExtension, reportIssue, starOnGithub, plus results.json.copyRawJson), and the 10 remaining keys are added to all ten locales. npm run test:i18n passes. The non-English strings are best-effort translations, so happy to change any a native speaker flags. |
Moves the 18 hardcoded aria-labels in Topbar.tsx, Sidebar.tsx and ScanResults.tsx to the translation function, so screen readers read them in the selected UI language.
i18n(...)sincetis aliased toi18nin that componentVerified:
grep -rn 'aria-label="' frontend/srcreturns nothingnpm run buildpassesNote: extension/popup.html still has one hardcoded aria-label, but it's outside frontend/src, so I left it out of scope.
Closes #436