Last active
March 5, 2020 14:59
-
-
Save daleharvey/0c02a150d73675e7da1f48fa21795188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Services.prefs.setCharPref("intl.locale.requested", "de"); | |
Services.locale.requestedLocales = ["de"]; | |
dump(Services.prefs.getCharPref("intl.locale.requested") + "\n"); | |
dump(Services.locale.appLocaleAsBCP47 + "\n"); | |
Outputs: | |
0:03.82 pid:73425 de | |
0:03.82 pid:73425 en-US |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Services.prefs.setCharPref("intl.locale.requested", "de");
Services.locale.requestedLocales = ["de"];
dump("GETTING\n");
dump(Services.prefs.getCharPref("intl.locale.requested") + "\n");
dump(Services.locale.appLocaleAsBCP47 + "\n");
0:03.79 pid:79497 GETTING
0:03.79 pid:79497 de
0:03.79 pid:79497 en-US