import { defaultLangCode } from './constants.js';
var LocaleHelper = /** @class */ (function () {
    function LocaleHelper(locales, langCode) {
        if (langCode === void 0) { langCode = defaultLangCode; }
        this.locales = locales;
        this.defaultLangCode = langCode;
    }
    LocaleHelper.prototype.get = function (langCode) {
        if (langCode === void 0) { langCode = this.defaultLangCode; }
        return this.locales[langCode] || this.locales[this.defaultLangCode] || {};
    };
    return LocaleHelper;
}());
export { LocaleHelper };
//# sourceMappingURL=LocaleHelper.js.map