l10n.js 677 B

1234567891011121314151617
  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 STRINGS_URI = "devtools/client/locales/responsive.properties";
  7. const L10N = new LocalizationHelper(STRINGS_URI);
  8. module.exports = {
  9. getStr: (...args) => L10N.getStr(...args),
  10. getFormatStr: (...args) => L10N.getFormatStr(...args),
  11. getFormatStrWithNumbers: (...args) => L10N.getFormatStrWithNumbers(...args),
  12. numberWithDecimals: (...args) => L10N.numberWithDecimals(...args),
  13. };