@nesto-software/moment-holiday-germany
Version:
The german locale for moment-holiday.
66 lines • 4.71 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const moment_holiday_core_1 = require("@nesto-software/moment-holiday-core");
const aug_region_locale_1 = require("./locale/aug.region-locale");
const bb_state_locale_1 = require("./locale/bb.state-locale");
const be_state_locale_1 = require("./locale/be.state-locale");
const bw_state_locale_1 = require("./locale/bw.state-locale");
const by_catholic_region_locale_1 = require("./locale/by-catholic.region-locale");
const by_state_locale_1 = require("./locale/by.state-locale");
const country_locale_1 = require("./locale/country-locale");
const hb_state_locale_1 = require("./locale/hb.state-locale");
const he_state_locale_1 = require("./locale/he.state-locale");
const hh_state_locale_1 = require("./locale/hh.state-locale");
const mv_state_locale_1 = require("./locale/mv.state-locale");
const ni_state_locale_1 = require("./locale/ni.state-locale");
const nw_state_locale_1 = require("./locale/nw.state-locale");
const rp_state_locale_1 = require("./locale/rp.state-locale");
const sh_state_locale_1 = require("./locale/sh.state-locale");
const sl_state_locale_1 = require("./locale/sl.state-locale");
const sn_catholic_region_locale_1 = require("./locale/sn-catholic.region-locale");
const sn_state_locale_1 = require("./locale/sn.state-locale");
const st_state_locale_1 = require("./locale/st.state-locale");
const th_catholic_region_locale_1 = require("./locale/th-catholic.region-locale");
const th_state_locale_1 = require("./locale/th.state-locale");
/**
* Creates holiday definitions for germany.
*/
class GermanHolidayDefinitionFactory extends moment_holiday_core_1.AbstractHolidayDefinitionFactory {
getCountryName() {
return GermanHolidayDefinitionFactory.COUNTRY_NAME;
}
getCountryAbbreviation() {
return GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION;
}
createCountry() {
return new moment_holiday_core_1.Country(GermanHolidayDefinitionFactory.COUNTRY_NAME, GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION, [
new moment_holiday_core_1.State("Baden-Württemberg", "BW", new bw_state_locale_1.BWStateLocale()),
new moment_holiday_core_1.State("Bayern", "BY", new by_state_locale_1.BYStateLocale(), [
new moment_holiday_core_1.Region("Augsburg", "BY_AUG", new aug_region_locale_1.AUGRegionLocale()),
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "BY_CATHOLIC", new by_catholic_region_locale_1.BYCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Sachsen-Anhalt", "ST", new st_state_locale_1.STStateLocale()),
new moment_holiday_core_1.State("Thüringen", "TH", new th_state_locale_1.THStateLocale(), [
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "TH_CATHOLIC", new th_catholic_region_locale_1.THCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Nordrhein-Westfalen", "NW", new nw_state_locale_1.NWStateLocale()),
new moment_holiday_core_1.State("Berlin", "BE", new be_state_locale_1.BEStateLocale()),
new moment_holiday_core_1.State("Hamburg", "HH", new hh_state_locale_1.HHStateLocale()),
new moment_holiday_core_1.State("Mecklenburg-Vorpommern", "MV", new mv_state_locale_1.MVStateLocale()),
new moment_holiday_core_1.State("Brandenburg", "BB", new bb_state_locale_1.BBStateLocale()),
new moment_holiday_core_1.State("Bremen", "HB", new hb_state_locale_1.HBStateLocale()),
new moment_holiday_core_1.State("Hessen", "HE", new he_state_locale_1.HEStateLocale()),
new moment_holiday_core_1.State("Niedersachsen", "NI", new ni_state_locale_1.NIStateLocale()),
new moment_holiday_core_1.State("Rheinland-Pfalz", "RP", new rp_state_locale_1.RPStateLocale()),
new moment_holiday_core_1.State("Saarland", "SL", new sl_state_locale_1.SLStateLocale()),
new moment_holiday_core_1.State("Sachsen", "SN", new sn_state_locale_1.SNStateLocale(), [
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "SN_CATHOLIC", new sn_catholic_region_locale_1.SNCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Schleswig-Holstein", "SH", new sh_state_locale_1.SHStateLocale()),
], new country_locale_1.GermanCountryLocale());
}
}
GermanHolidayDefinitionFactory.COUNTRY_NAME = "Germany";
GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION = "DE";
exports.GermanHolidayDefinitionFactory = GermanHolidayDefinitionFactory;
//# sourceMappingURL=german-holiday-definition-factory.js.map