summaryrefslogtreecommitdiff
path: root/node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js')
-rw-r--r--node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js b/node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js
new file mode 100644
index 0000000..eb7a9dd
--- /dev/null
+++ b/node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js
@@ -0,0 +1,21 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.LocalizedStringsJSONObject = void 0;
+/**
+ * A type providing access to underlying localized strings JSON object.
+ */
+class LocalizedStringsJSONObject {
+ /**
+ * Create localized strings JSON object.
+ *
+ * @param strings - A dictionary containing localized strings.
+ */
+ constructor(strings) {
+ this.strings = strings;
+ }
+ // MARK: - Localized Strings
+ string(key) {
+ return this.strings[key];
+ }
+}
+exports.LocalizedStringsJSONObject = LocalizedStringsJSONObject;