mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8313 from Snuffleupagus/bug-1346616
[Firefox addon] Upstream changes from: Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales
This commit is contained in:
commit
2928578164
1 changed files with 6 additions and 1 deletions
|
@ -319,7 +319,12 @@ class ChromeActions {
|
|||
}
|
||||
|
||||
getLocale() {
|
||||
return getStringPref("general.useragent.locale", "en-US");
|
||||
//#if !MOZCENTRAL
|
||||
if (!Services.locale.getRequestedLocale) {
|
||||
return getStringPref("general.useragent.locale", "en-US");
|
||||
}
|
||||
//#endif
|
||||
return Services.locale.getRequestedLocale() || "en-US";
|
||||
}
|
||||
|
||||
getStrings(data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue