12345678910111213141516171819202122232425262728293031323334353637 |
- '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: Storytelling
- * (C) Copyright IBM Corp. 2017, 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['i18n!./CAStorytellingResources', 'polyglot'], function (storytellingResources, Polyglot) {
- var poly = new Polyglot({
- phrases: storytellingResources,
- allowMissing: true
- });
- var StringResources = function () {
- function StringResources() {
- _classCallCheck(this, StringResources);
- }
- /**
- * @param {String} key The key of the string to return
- * @param {Object} [interpolationOptions] interpolation options (see poly.t documentation for details)
- * @returns {String} The string to display
- */
- StringResources.prototype.get = function get(key, interpolationOptions) {
- return poly.t(key, interpolationOptions);
- };
- return StringResources;
- }();
- return new StringResources();
- });
- //# sourceMappingURL=StringResources.js.map
|