Hi Makoto, I'm trying to learn more about `intl.accept_languages` for Android and the impact on translations. So, right now, in Android, if I add multiple preferred languages on the OS screen, I will get all of the language codes listed there of preferred languages: e.g., OS languages: 1. English, 2. German, 3. French = `en-US,de-DE,fr-FR`. (Tested in 125 Nightly.) However, testing adding additional preferred OS languages in Windows 11, 125 Release, and additional preferred OS languages in MacOS 14.2.1, 125 Release, do not show up in `intl.accept_languages` on those platforms. Should Windows and MacOS also automatically pick up these languages from the OS? The reason this bug is interesting is for the new translations feature. So, for translations, we try to determine if the user "knows" a language, and `intl.accept_languages` is [one of the ways](https://searchfox.org/mozilla-central/rev/132ffbfd6842e5ecd3813673c24da849d3c9acf8/toolkit/components/translations/actors/TranslationsParent.sys.mjs#555-565) we determine if the user may know the language. In Android it causes the behavior as described in Bug 1884694 comment 6. In Desktop, because the behavior is different, this multiple language scenario occurs differently. Curious to know your thoughts and what your recommendation is!
Bug 265400 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Hi Makoto, I'm trying to learn more about `intl.accept_languages` for Android and the impact on translations. So, right now, in Android, if I add multiple preferred languages on the OS screen, I will get all of the language codes listed there of preferred languages: e.g., OS languages: 1. English, 2. German, 3. French = `en-US,de-DE,fr-FR`. (Tested in 125 Nightly.) However, testing adding additional preferred OS languages in Windows 11, 125 Release, and additional preferred OS languages in MacOS 14.2.1, 125 Release, do not show up in `intl.accept_languages` on those platforms. Should Windows and MacOS also automatically pick up these languages from the OS? Should Android not, due to potential [fingerprinting](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language)? The reason this bug is interesting is for the new translations feature. So, for translations, we try to determine if the user "knows" a language, and `intl.accept_languages` is [one of the ways](https://searchfox.org/mozilla-central/rev/132ffbfd6842e5ecd3813673c24da849d3c9acf8/toolkit/components/translations/actors/TranslationsParent.sys.mjs#555-565) we determine if the user may know the language. In Android it causes the behavior as described in Bug 1884694 comment 6. In Desktop, because the behavior is different, this multiple language scenario occurs differently. Curious to know your thoughts and what your recommendation is!