UNPKG

@nesto-software/moment-holiday-germany

Version:

The german locale for moment-holiday.

84 lines 5.68 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var moment_holiday_core_1 = require("@nesto-software/moment-holiday-core"); var aug_region_locale_1 = require("./locale/aug.region-locale"); var bb_state_locale_1 = require("./locale/bb.state-locale"); var be_state_locale_1 = require("./locale/be.state-locale"); var bw_state_locale_1 = require("./locale/bw.state-locale"); var by_catholic_region_locale_1 = require("./locale/by-catholic.region-locale"); var by_state_locale_1 = require("./locale/by.state-locale"); var country_locale_1 = require("./locale/country-locale"); var hb_state_locale_1 = require("./locale/hb.state-locale"); var he_state_locale_1 = require("./locale/he.state-locale"); var hh_state_locale_1 = require("./locale/hh.state-locale"); var mv_state_locale_1 = require("./locale/mv.state-locale"); var ni_state_locale_1 = require("./locale/ni.state-locale"); var nw_state_locale_1 = require("./locale/nw.state-locale"); var rp_state_locale_1 = require("./locale/rp.state-locale"); var sh_state_locale_1 = require("./locale/sh.state-locale"); var sl_state_locale_1 = require("./locale/sl.state-locale"); var sn_catholic_region_locale_1 = require("./locale/sn-catholic.region-locale"); var sn_state_locale_1 = require("./locale/sn.state-locale"); var st_state_locale_1 = require("./locale/st.state-locale"); var th_catholic_region_locale_1 = require("./locale/th-catholic.region-locale"); var th_state_locale_1 = require("./locale/th.state-locale"); /** * Creates holiday definitions for germany. */ var GermanHolidayDefinitionFactory = /** @class */ (function (_super) { __extends(GermanHolidayDefinitionFactory, _super); function GermanHolidayDefinitionFactory() { return _super !== null && _super.apply(this, arguments) || this; } GermanHolidayDefinitionFactory.prototype.getCountryName = function () { return GermanHolidayDefinitionFactory.COUNTRY_NAME; }; GermanHolidayDefinitionFactory.prototype.getCountryAbbreviation = function () { return GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION; }; GermanHolidayDefinitionFactory.prototype.createCountry = function () { 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"; return GermanHolidayDefinitionFactory; }(moment_holiday_core_1.AbstractHolidayDefinitionFactory)); exports.GermanHolidayDefinitionFactory = GermanHolidayDefinitionFactory; //# sourceMappingURL=german-holiday-definition-factory.js.map