Repository navigation
fix(webui): translate connector descriptions, field labels and setup help - #6903
Conversation
…help In Arabic, Settings > Connectors showed every built-in connector's description, OAuth setup labels, setup help and "Required:" error in English, because they came straight from the backend catalog. They now go through the i18n table (English and Arabic), and search also matches the translated description. A message is used only while its English matches what the catalog sends, so a custom server or a reworded catalog entry shows its own text rather than a stale translation. A unit test keeps en.ts in step with the catalog. Closes #6860
|
Verdict: Approve In Arabic, Settings › Connectors showed each built-in connector's description, setup field labels, setup help and the "Required:" error in English. This PR translates them. If a connector's text doesn't match the shipped English exactly (a custom server, or catalog text reworded since), the UI shows the text as sent rather than an out-of-date translation. A new unit test fails CI if the catalog and the UI's English drift apart. I found no blocking issues. One thing to look at when you do the last manual check: Arabic shows the English in brackets after every translation, so the longest help text (the Microsoft work tenant ID) will appear twice, roughly 600 characters each. That follows the locale's convention, but check that the setup dialog still reads well. Real-world evidenceThe evidence stage called the live As a spot check, the single-connector route the configure dialog uses ( 🔍 Technical detailsIssues found 🟢 Long help text is shown twice in Arabic ( Checked, no finding
Strengths
|
In Arabic, Settings > Connectors still showed each built-in connector's description, setup field labels, setup help and the "Required:" error in English. They now come from the translation table with English and Arabic entries, and search also finds a connector by its translated description. A connector the catalog doesn't ship (a custom server), or a catalog entry that was reworded since, shows its own text instead of an out-of-date translation. A unit test fails if the catalog and the UI's English drift apart.
Closes #6860
Note: the MCP server key fields (Slack, GitHub, Discord tokens) aren't shown with labels or help on main yet. #6855 adds them and can route them through the same lookup.
Test plan
npx vitest runandnpx tsc --noEmitinsrc/gaia/apps/webui. The newConnectorsSection.i18ntests cover the Arabic description, labels, help, the missing-field error, search, and fallback to the sent textpython -m pytest tests/unit/connectors/test_catalog_ui_text.pynpm run test:rtl -- -g connectorspasses in both languages. The RTL suite has no screenshot baselines, so none needed regeneratingtests/electronJest)