/ node_modules / @jet / engine / lib / dependencies / localized-strings-json-object.js
localized-strings-json-object.js
 1  "use strict";
 2  Object.defineProperty(exports, "__esModule", { value: true });
 3  exports.LocalizedStringsJSONObject = void 0;
 4  /**
 5   * A type providing access to underlying localized strings JSON object.
 6   */
 7  class LocalizedStringsJSONObject {
 8      /**
 9       * Create localized strings JSON object.
10       *
11       * @param strings - A dictionary containing localized strings.
12       */
13      constructor(strings) {
14          this.strings = strings;
15      }
16      // MARK: - Localized Strings
17      string(key) {
18          return this.strings[key];
19      }
20  }
21  exports.LocalizedStringsJSONObject = LocalizedStringsJSONObject;