123456789101112131415161718192021222324252627282930313233343536373839 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- define(['i18n!./ServiceabilityResources', 'polyglot'], function (serviceabilityResources, Polyglot) {
- var poly = new Polyglot({
- phrases: serviceabilityResources,
- allowMissing: true
- });
- var StringResources = function () {
- function StringResources() {
- _classCallCheck(this, StringResources);
- }
-
- StringResources.prototype.get = function get(key, interpolationOptions) {
- return poly.t(key, interpolationOptions);
- };
- return StringResources;
- }();
- return new StringResources();
- });
|