Browser UI locale follows the host OS, not the profile language: `validationMessage` leaks the host language
Environment: ShardX Launcher 2.0.3 (engine 152.0.7977.65). Reproduced on Windows 11 and on macOS arm64, both with a non-English OS UI language (ru-RU).
Repro
- Host OS UI language is anything other than the profile language (here: Russian).
- Create a profile with Language = English (US), start it, open any page.
- In the console:
(() => { const i = document.createElement('input'); i.required = true;
return [i.validationMessage, navigator.languages, Intl.DateTimeFormat().resolvedOptions().locale]; })()
Actual
["Заполните это поле.", ["en-US", "en"], "en-US"]
navigator.languages, Accept-Language and the ICU locale are spoofed correctly, but the browser's own UI strings are still in the host language, and validationMessage hands one of them to the page. The browser menus are in the host language too. I only verified validationMessage; other UI-localized strings a page can read are probably affected the same way.
Neither browserscan.net nor pixelscan.net flags it: the profile still scores 100% / "No masking detected".
Cause
The launcher does not pass a UI locale to the engine: the command line built in launch.rs has no --lang, and the process list confirms it (--fingerprint-profile=… --user-data-dir=… --no-first-run …, nothing locale-related).
Workaround (verified)
- Windows:
--lang=en-USin Settings → extra args. After that the same snippet returns"Please fill out this field.". - macOS:
-AppleLanguages (en-US)in extra args also fixes the string and the menus, but the engine treats the second token as a URL and opens a(en-us)tab on every start. I did not test--langon macOS.
Both are global, so they only fit a setup where every profile uses the same language.
Expected
The launcher (or the engine, from icu_locale in the fingerprint JSON) sets the browser UI locale per profile to the resolved navigator.language, so UI-derived strings agree with the rest of the locale surface.
in v2.1.1