diff --git a/browser/components/preferences/in-content/main.js b/browser/components/preferences/in-content/main.js index 96c0a7f6b347..ffc6ef79b3d8 100644 --- a/browser/components/preferences/in-content/main.js +++ b/browser/components/preferences/in-content/main.js @@ -235,10 +235,15 @@ if (AppConstants.MOZ_UPDATER) { // We store this in a global so tests can await it. var promiseLoadHandlersList; -// Load the preferences string bundle for a given locale. +// Load the preferences string bundle for a given locale with fallbacks. function getBundleForLocale(locale) { + let locales = Array.from(new Set([ + locale, + ...Services.locale.getRequestedLocales(), + Services.locale.lastFallbackLocale, + ])); function generateContexts(resourceIds) { - return L10nRegistry.generateContexts([locale], resourceIds); + return L10nRegistry.generateContexts(locales, resourceIds); } return new Localization([ "browser/preferences/preferences.ftl",