@nesto-software/moment-holiday-germany
Version:
The german locale for moment-holiday.
25 lines • 1.06 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 AUGRegionLocale extends moment_holiday_core_1.AbstractLocale {
constructor() {
super(...arguments);
this.legislation = new moment_holiday_core_1.Legislation("Feiertagsgesetz", url.parse("http://www.gesetze-bayern.de/Content/Document/BayFTG-1"), "Art. 1 II");
}
getHolidayDefinitions() {
return [
{
name: holiday_names_1.HolidayName.FRIEDENSFEST,
date: new moment_holiday_core_1.RecurringDate(8, 7),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.legislation),
],
},
];
}
}
exports.AUGRegionLocale = AUGRegionLocale;
//# sourceMappingURL=aug.region-locale.js.map