Skip to content
Snippets Groups Projects
Verified Commit c67648ac authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Add TorStrings module for localization

Move the `getLocale` function here from TorButton util.js and stop
importing it.
parent 82d452ef
Branches
No related tags found
1 merge request!734Bug 42030: Rebased 13.0 alpha onto Firefox 115.2.0esr
......@@ -11,9 +11,11 @@ const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { AppConstants } = ChromeUtils.import(
"resource://gre/modules/AppConstants.jsm"
);
const { getLocale } = ChromeUtils.import(
"resource://torbutton/modules/utils.js"
);
function getLocale() {
const locale = Services.locale.appLocaleAsBCP47;
return locale === "ja-JP-macos" ? "ja" : locale;
}
/*
Tor Property String Bundle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment