summaryrefslogtreecommitdiff
path: root/shared/metrics-8/node_modules/@jet/engine/lib/dependencies/localized-strings-json-object.js
blob: eb7a9dd8ef4df99e7645bdbe1292496fee032d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;