@nesto-software/moment-holiday-sweden
Version:
The swedish locale for moment-holiday.
23 lines • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const moment_holiday_core_1 = require("@nesto-software/moment-holiday-core");
const country_locale_1 = require("./locale/country-locale");
/**
* Creates holiday definitions for Sweden.
*/
class SwedishHolidayDefinitionFactory extends moment_holiday_core_1.AbstractHolidayDefinitionFactory {
getCountryName() {
return SwedishHolidayDefinitionFactory.COUNTRY_NAME;
}
getCountryAbbreviation() {
return SwedishHolidayDefinitionFactory.COUNTRY_ABBREVIATION;
}
createCountry() {
return new moment_holiday_core_1.Country(SwedishHolidayDefinitionFactory.COUNTRY_NAME, SwedishHolidayDefinitionFactory.COUNTRY_ABBREVIATION, [], new country_locale_1.SwedishCountryLocale());
}
}
SwedishHolidayDefinitionFactory.COUNTRY_NAME = "Sweden";
SwedishHolidayDefinitionFactory.COUNTRY_ABBREVIATION = "SE";
exports.SwedishHolidayDefinitionFactory = SwedishHolidayDefinitionFactory;
// export type SwedishRegionAbbreviation = ""; // non specified so far
//# sourceMappingURL=swedish-holiday-definition-factory.js.map