UNPKG

@nesto-software/moment-holiday-germany

Version:

The german locale for moment-holiday.

28 lines 1.3 kB
"use strict"; 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 SNCatholicRegionLocale extends moment_holiday_core_1.AbstractLocale { constructor() { super(...arguments); this.legislation = new moment_holiday_core_1.Legislation("Gesetz über Sonn- und Feiertage im Freistaat Sachsen", // tslint:disable-next-line:max-line-length url.parse("https://www.revosax.sachsen.de/vorschrift/3997-SaechsSFG"), "§1 Abs. 1"); } getHolidayDefinitions() { return [ // nur in den vom Staatsministerium des Innern durch Rechtsverordnung bestimmten Regionen { 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.SNCatholicRegionLocale = SNCatholicRegionLocale; //# sourceMappingURL=sn-catholic.region-locale.js.map