tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fluent-l10n.js (512B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 /**
      8 * Mock for devtools/client/shared/modules/fluent-l10n/fluent-l10n
      9 */
     10 class FluentL10n {
     11  async init() {}
     12 
     13  getBundles() {
     14    return [];
     15  }
     16 
     17  getString(id, args) {
     18    return args ? `${id}__${JSON.stringify(args)}` : id;
     19  }
     20 }
     21 
     22 // Export the class
     23 exports.FluentL10n = FluentL10n;