@nesto-software/moment-holiday-germany
Version:
The german locale for moment-holiday.
27 lines • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const moment_holiday_core_1 = require("@nesto-software/moment-holiday-core");
const url = require("url");
const holiday_names_1 = require("./holiday-names");
class THCatholicRegionLocale extends moment_holiday_core_1.AbstractLocale {
constructor() {
super(...arguments);
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");
}
getHolidayDefinitions() {
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),
],
},
];
}
}
exports.THCatholicRegionLocale = THCatholicRegionLocale;
//# sourceMappingURL=th-catholic.region-locale.js.map