@nesto-software/moment-holiday-germany
Version:
The german locale for moment-holiday.
36 lines • 1.85 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const moment_holiday_core_1 = require("@nesto-software/moment-holiday-core");
const url = require("url");
const common_state_holiday_definitions_1 = require("./common-state-holiday-definitions");
const holiday_names_1 = require("./holiday-names");
class RPStateLocale extends moment_holiday_core_1.AbstractLocale {
constructor() {
super(...arguments);
this.legislation = new moment_holiday_core_1.Legislation("Landesgesetz über den Schutz der Sonn- und Feiertage",
// tslint:disable-next-line:max-line-length
url.parse("http://landesrecht.rlp.de/jportal/portal/t/rtk/page/bsrlpprod.psml?pid=Dokumentanzeige&showdoccase=1&js_peid=Trefferliste&fromdoctodoc=yes&doc.id=jlr-FeiertGRPpP2#focuspoint"), "§2 Abs. 1");
}
getHolidayDefinitions() {
return common_state_holiday_definitions_1.COMMON_STATE_HOLIDAY_DEFINITIONS(this.legislation).concat([
{
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),
],
},
{
name: holiday_names_1.HolidayName.ALLERHEILIGEN,
date: new moment_holiday_core_1.RecurringDate(1, 10),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.legislation),
],
},
]);
}
}
exports.RPStateLocale = RPStateLocale;
//# sourceMappingURL=rp.state-locale.js.map