/* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| IBM Cognos Products: Content Explorer *| (C) Copyright IBM Corp. 2015, 2018 *| *| US Government Users Restricted Rights - Use, duplication or disclosure *| restricted by GSA ADP Schedule Contract with IBM Corp. *+------------------------------------------------------------------------+ */ define(['i18n!./CamobileviewsResources', 'polyglot'], function (localeResources, Polyglot) { 'use strict'; /** * Module which provides simple access to string resources. * */ var poly = new Polyglot({ phrases: localeResources }); var StringResources = function () { 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); }; return new StringResources(); });