Skip to content

Instantly share code, notes, and snippets.

@daleharvey
Last active March 5, 2020 14:59
Show Gist options
  • Save daleharvey/0c02a150d73675e7da1f48fa21795188 to your computer and use it in GitHub Desktop.
Save daleharvey/0c02a150d73675e7da1f48fa21795188 to your computer and use it in GitHub Desktop.
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
@daleharvey
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment