@nesto-software/moment-holiday-germany
Version:
The german locale for moment-holiday.
43 lines • 2.06 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var moment_holiday_core_1 = require("@nesto-software/moment-holiday-core");
var url = require("url");
var holiday_names_1 = require("./holiday-names");
var THCatholicRegionLocale = /** @class */ (function (_super) {
__extends(THCatholicRegionLocale, _super);
function THCatholicRegionLocale() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.legislation = new moment_holiday_core_1.Legislation("Feiertagsgesetz",
// tslint:disable-next-line:max-line-length
url.parse("http://landesrecht.thueringen.de/jportal/?quelle=jlink&query=FeiertG+TH&psml=bsthueprod.psml&max=true&aiz=true#jlr-FeiertGTHV2P2"), "§2 Art. 2");
return _this;
}
THCatholicRegionLocale.prototype.getHolidayDefinitions = function () {
return [
{
name: holiday_names_1.HolidayName.FRONLEICHNAM,
date: new moment_holiday_core_1.EasterDependentDate(+60),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.legislation),
],
},
];
};
return THCatholicRegionLocale;
}(moment_holiday_core_1.AbstractLocale));
exports.THCatholicRegionLocale = THCatholicRegionLocale;
//# sourceMappingURL=th-catholic.region-locale.js.map