mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

This patch ended up adding some complexity to about:welcome, as the language switching needs to eagerly perform fallible asynchronous actions. Specifically it needs to get the list of addons and pre-emptively install the langpack, which can take time, and can fail. This necessitated building a custom React components and custom hooks to be able to deal with these requirements. The following command will allow for the testing of this feature. ./mach run \ --temp-profile \ --setpref "extensions.getAddons.langpacks.url=https://mock-amo-language-tools.glitch.me/?app=firefox&type=language&appversion=%VERSION%" \ --setpref "intl.multilingual.aboutWelcome.languageMismatchEnabled=true" \ --setpref "intl.multilingual.aboutWelcome.systemLocaleOverride=es-ES" `#(optional)` \ -- --new-tab about:welcome Differential Revision: https://phabricator.services.mozilla.com/D138831