UNPKG

@nesto-software/moment-holiday-sweden

Version:

The swedish locale for moment-holiday.

41 lines 2.13 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 country_locale_1 = require("./locale/country-locale"); /** * Creates holiday definitions for Sweden. */ var SwedishHolidayDefinitionFactory = /** @class */ (function (_super) { __extends(SwedishHolidayDefinitionFactory, _super); function SwedishHolidayDefinitionFactory() { return _super !== null && _super.apply(this, arguments) || this; } SwedishHolidayDefinitionFactory.prototype.getCountryName = function () { return SwedishHolidayDefinitionFactory.COUNTRY_NAME; }; SwedishHolidayDefinitionFactory.prototype.getCountryAbbreviation = function () { return SwedishHolidayDefinitionFactory.COUNTRY_ABBREVIATION; }; SwedishHolidayDefinitionFactory.prototype.createCountry = function () { 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"; return SwedishHolidayDefinitionFactory; }(moment_holiday_core_1.AbstractHolidayDefinitionFactory)); exports.SwedishHolidayDefinitionFactory = SwedishHolidayDefinitionFactory; // export type SwedishRegionAbbreviation = ""; // non specified so far //# sourceMappingURL=swedish-holiday-definition-factory.js.map