mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-18 00:57:55 +00:00
* fix(pad): show detected language in settings dropdown (#7925) When the UI language was auto-detected from the browser (no language cookie and no pad-wide lang set), refreshMyViewControls() and refreshPadSettingsControls() set the language dropdown to `<option>.lang || 'en'`. Since the detected language lives only in html10n (not in padOptions/effectiveOptions), the value was undefined and the dropdown fell back to hardcoded English — even though the pad UI itself rendered correctly in the detected language. Fall back to html10n.getLanguage() before 'en' so the dropdown reflects the language actually rendered. getLanguage() returns the matched lowercase locale key, which matches the <option value> keys. Adds a regression test that loads a pad under a de-DE browser locale and asserts the dropdown reads "Deutsch" without any manual selection. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test(language): assert German toolbar tooltip (Qodo #7928) The detection-works precondition computed a boolean via locator.evaluate() but never asserted it, so it could not fail. Assert the bold button's parent title is the German "Fett (Strg-B)" with toHaveAttribute instead. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| locales | ||
| node | ||
| static | ||
| templates | ||
| tests | ||
| .eslintrc.cjs | ||
| ep.json | ||
| etherpad_icon.svg | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
| web.config | ||
Ignore this file and see the file in the base installation folder