UNPKG

@nesto-software/moment-holiday-germany

Version:

The german locale for moment-holiday.

43 lines 2.12 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 GermanCountryLocale extends moment_holiday_core_1.AbstractLocale { constructor() { super(...arguments); this.legislation = new moment_holiday_core_1.Legislation("Einigungsvertrag", url.parse("https://www.gesetze-im-internet.de/einigvtr/BJNR208890990.html"), "Kap. 1 Art. 2 II"); this.legislationForReformationstag = new moment_holiday_core_1.Legislation("Unterschiedliche Landesverordnungen der jeweiligen Bundesländer"); } getHolidayDefinitions() { return [ { name: holiday_names_1.HolidayName.TAG_DER_DEUTSCHEN_EINHEIT, date: new moment_holiday_core_1.RecurringDate(3, 9), 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.SILVESTER, date: new moment_holiday_core_1.RecurringDate(31, 11), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.OBSERVANCE), new moment_holiday_core_1.LateTag(), new moment_holiday_core_1.SpecialSurchargeDayTag(), ], }, { name: holiday_names_1.HolidayName.REFORMATIONSTAG_JUBILAEUM, date: moment_holiday_core_1.NonRecurringDate.forYears(31, 9, [2017]), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(this.legislationForReformationstag), ], }, ]; } } exports.GermanCountryLocale = GermanCountryLocale; //# sourceMappingURL=country-locale.js.map