Repository navigation
fix(webui): translate the chat header buttons and sidebar handle - #7958
Conversation
In Arabic the private chat, browse files and export buttons, the loading label and the sidebar resize handle kept English names and hover text. They now read in Arabic with the usual English gloss.
|
Verdict: Request changes This PR fixes three chat-header buttons and the sidebar resize handle, which stayed in English in the Arabic UI. They now read in Arabic, and the English text doesn't change. The fix is correct and well tested, but it breaks an existing Electron test, and the Test Electron Framework check on this PR is failing.
Real-world evidenceN/A: no evidence bundle was produced for this run. The PR body has before/after Arabic screenshots taken by the author. This verdict rests on static review plus the CI result above. Hovering the icons in the packaged app, as the author's last test-plan item asks, was not done here. 🔍 Technical details🟡 Electron test still asserts the removed literals ( 🟢 Near-duplicate key. Checked: the reused Strengths
|
|
Verdict: Request changes 🟡 The Electron test from the last review is still not fixed, and Test Electron Framework still fails on this push. The test checks the chat view's source for the old English labels on the export and browse buttons, but those buttons now take their labels from translations. Change those two checks to the translated form, the way the same test already handles the composer buttons. 🔍 Technical details
expectTranslated(chatContent, "aria-label={t('chat.exportLabel')}", 'chat.exportLabel', 'Export chat');
expectTranslated(chatContent, "aria-label={t('chat.browseFiles')}", 'chat.browseFiles', 'Browse files on this PC'); |
|
Verdict: Approve In Arabic, the chat header's private, browse-files and export buttons, the loading placeholder, and the sidebar's resize handle now have Arabic names and hover text. English wording doesn't change. The change is small, follows the same Real-world evidenceN/A here: no evidence bundle was produced for this run. The PR description has before/after screenshots of the Arabic chat header, with an overlay listing the names and hover text read from the page. A real hover check in both languages is still an open item for the reviewer in the PR's test plan. Apart from those screenshots, this verdict rests on static review. 🔍 Technical detailsChecked
Issues
Strengths
|
In Arabic, the chat's private chat, browse files and export buttons and the sidebar's resize handle kept English names and hover text, so screen readers read English and the hover text was English. They now read in Arabic with the usual English gloss, like the neighbouring resource and session-panel buttons.
Closes #7959
Test plan
npm teston the ChatView, Sidebar, PrivateChip, SettingsDialogFocus and i18n files passes, including a new Arabic test for the header buttons and resize handlenpm run buildpasses🔍 Technical details
PrivateChatButton.tsx,ChatView.tsx(browse, export, loading skeleton) andSidebarResizer.tsxhad English literals outsideuseT.composer.privateOn*strings; new keys arechat.privateOffTitle,chat.browseFiles,chat.exportTitle,chat.exportLabel,chat.loadingMessages,sidebar.resize,sidebar.resizeTitle, with Arabic inar.ts. English wording is unchanged.hardcodedText.baseline.jsonlowered for the three files.