12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- "use strict";
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Content Explorer
- *| (C) Copyright IBM Corp. 2015
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define(['i18n!bi/admin/nls/admin_client_resources', 'polyglot'], function (localeResources, Polyglot) {
- 'use strict'; //NOSONAR: meant to be strict
- /**
- * Module which provides simple access to string resources.
- *
- */
- var poly = new Polyglot({
- phrases: localeResources
- });
- var StringResources = function StringResources() {
- return undefined;
- };
- /**
- * Get the string resource for the given key and interpolation options
- *
- * @param key The key of the string to return
- * @param interpolationOptions Optional interpolation options (see poly.t documentation for details)
- * @returns The string to display
- */
- StringResources.prototype.get = function (key, interpolationOptions) {
- return poly.t(key, interpolationOptions);
- };
- StringResources.prototype.translate = function (key, interpolationOptions) {
- return poly.t(key, interpolationOptions);
- };
- return new StringResources();
- });
|