Files
apps.apple.com/node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js
2025-11-04 05:03:50 +08:00

22 lines
595 B
JavaScript

"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;