123456789101112131415161718192021222324252627282930313233343536373839 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Dashboard
- * (C) Copyright IBM Corp. 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['i18n!./ServiceabilityResources', 'polyglot'], function (serviceabilityResources, Polyglot) {
- var poly = new Polyglot({
- phrases: serviceabilityResources,
- allowMissing: true
- });
- var StringResources = function () {
- function StringResources() {
- _classCallCheck(this, StringResources);
- }
- /**
- * Get the string resource for the given key and interpolation options
- *
- * @param {string} key The key of the string to return
- * @param {object} [interpolationOptions] see poly.t documentation for details
- * @returns {string} The corresponding string for the given key
- */
- StringResources.prototype.get = function get(key, interpolationOptions) {
- return poly.t(key, interpolationOptions);
- };
- return StringResources;
- }();
- return new StringResources();
- });
- //# sourceMappingURL=StringResources.js.map
|