l10n.js 640 B

12345678910111213141516
  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. "use strict";
  5. const { LocalizationHelper } = require("devtools/shared/l10n");
  6. const L10N = new LocalizationHelper("devtools/client/locales/layout.properties");
  7. module.exports = {
  8. getStr: (...args) => L10N.getStr(...args),
  9. getFormatStr: (...args) => L10N.getFormatStr(...args),
  10. getFormatStrWithNumbers: (...args) => L10N.getFormatStrWithNumbers(...args),
  11. numberWithDecimals: (...args) => L10N.numberWithDecimals(...args),
  12. };