Bug 1500716 - Port bug 1498960 to TB: Update Fluent in Gecko to 0.9 (s/generateContexts/generateBundles). r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Sun, 21 Oct 2018 00:17:01 +0200
changeset 33433 1f36e5572558f5693d853585ae63a5b0f0f69d96
parent 33432 30865d9dd0667a038c29f15b7456363fb3176099
child 33434 1c2a3007c1f5ab75a11afcecd0625d827383c75a
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk
bugs1500716, 1498960
Bug 1500716 - Port bug 1498960 to TB: Update Fluent in Gecko to 0.9 (s/generateContexts/generateBundles). r=jorgk
mail/components/preferences/advanced.js
--- a/mail/components/preferences/advanced.js
+++ b/mail/components/preferences/advanced.js
@@ -493,23 +493,23 @@ var gAdvancedPane = {
 
   // Load the preferences string bundle for other locales with fallbacks.
   getBundleForLocales(newLocales) {
     let locales = Array.from(new Set([
       ...newLocales,
       ...Services.locale.requestedLocales,
       Services.locale.lastFallbackLocale,
     ]));
-    function generateContexts(resourceIds) {
-      return L10nRegistry.generateContexts(locales, resourceIds);
+    function generateBundles(resourceIds) {
+      return L10nRegistry.generateBundles(locales, resourceIds);
     }
     return new Localization([
       "messenger/preferences/preferences.ftl",
       "branding/brand.ftl",
-    ], generateContexts);
+    ], generateBundles);
   },
 
   initMessengerLocale() {
     let localeCodes = Services.locale.availableLocales;
     let localeNames = Services.intl.getLocaleDisplayNames(undefined, localeCodes);
     let locales = localeCodes.map((code, i) => ({code, name: localeNames[i]}));
     locales.sort((a, b) => a.name > b.name);