@phensley/cldr-core
Version:
Core library for @phensley/cldr
31 lines • 1.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GeneralImpl = /** @class */ (function () {
function GeneralImpl(bundle, internal) {
this.bundle = bundle;
this.internal = internal;
this.general = internal.general;
}
GeneralImpl.prototype.characterOrder = function () {
return this.general.characterOrder(this.bundle);
};
GeneralImpl.prototype.lineOrder = function () {
return this.general.lineOrder(this.bundle);
};
GeneralImpl.prototype.formatList = function (items, type) {
return this.general.formatList(this.bundle, items, type || 'and');
};
GeneralImpl.prototype.formatListToParts = function (items, type) {
return this.general.formatListToParts(this.bundle, items, type || 'and');
};
GeneralImpl.prototype.getScriptDisplayName = function (code) {
return this.general.getScriptDisplayName(this.bundle, code);
};
GeneralImpl.prototype.getRegionDisplayName = function (code, type) {
var name = this.general.getRegionDisplayName(this.bundle, code, (type || 'none'));
return name !== '' ? name : this.general.getRegionDisplayName(this.bundle, code, 'none');
};
return GeneralImpl;
}());
exports.GeneralImpl = GeneralImpl;
//# sourceMappingURL=api.js.map