1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- '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-livewidget
- *
- * (C) Copyright IBM Corp. 2019
- *
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * THIS IS ONLY USED FOR THE SERVICEABILITY PANEL. WE DO NOT SUPPORT TRANSLATION FOR SERVICEABILITY
- * DO NOT SEND IT FOR TRANSLATION
- */
- define(['i18n!./LwServiceabilityResources', 'polyglot'], function (ServiceabilityResources, Polyglot) {
- var poly = new Polyglot({
- phrases: ServiceabilityResources,
- allowMissing: true
- });
- var StringResources = function () {
- function StringResources() {
- _classCallCheck(this, StringResources);
- }
- /**
- * Get the serviceability string resource for the given key and interpolation options
- *
- * @param key The key of the string to return
- * @param {Object} [interpolationOptions] interpolation options (see poly.t documentation for details)
- * @returns 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
|