@nesto-software/moment-holiday-germany
Version:
The german locale for moment-holiday.
36 lines • 1.76 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 THStateLocale extends moment_holiday_core_1.AbstractLocale {
constructor() {
super(...arguments);
this.legislation = new moment_holiday_core_1.Legislation("Feier- und Gedenktagsgesetz",
// 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"), "§2 Abs. I");
}
getHolidayDefinitions() {
return common_state_holiday_definitions_1.COMMON_STATE_HOLIDAY_DEFINITIONS(this.legislation).concat([
{
name: holiday_names_1.HolidayName.REFORMATIONSTAG,
date: new moment_holiday_core_1.RecurringDate(31, 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.WELTKINDERTAG,
date: new moment_holiday_core_1.RecurringDate(20, 8),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.legislation),
],
},
]);
}
}
exports.THStateLocale = THStateLocale;
//# sourceMappingURL=th.state-locale.js.map