src/gecko/l20n.js
function requestBundles(requestedLangs = navigator.languages) {
    return L10nRegistry.getResources(requestedLangs, resIds).then(
      ({bundles}) => bundles.map(
        bundle => new ChromeResourceBundle(bundle.locale, bundle.resources)
      )
    );
  }
function requestBundles(requestedLangs = navigator.languages) {
    return L10nRegistry.getResources(requestedLangs, resIds).then(
      ({bundles}) => bundles.map(
        bundle => new ChromeResourceBundle(bundle.locale, bundle.resources)
      )
    );
  }
function requestBundles ( requestedLangs = navigator . languages ) { return L10nRegistry . getResources ( requestedLangs , resIds ) . then ( ( { bundles } ) => bundles . map ( bundle => new ChromeResourceBundle ( bundle . locale , bundle . resources ) ) ) ; }
This function is called by `Localization` class to retrieve an array of `ResourceBundle`s. In chrome-privileged setup we use the `L10nRegistry` to get this array.
This function is called by Localization class to retrieve an array of ResourceBundle s . In chrome - privileged setup we use the L10nRegistry to get this array .