- HolidayType
- Region
- Holiday
- allHolidays
- allRegions
- TranslationTable
- addTranslation
- setLanguage
- getLanguage
- isSunOrHoliday
- isHoliday
- getHolidayByDate
- isSpecificHoliday
- getHolidays
Type: ("NEUJAHRSTAG"
| "HEILIGEDREIKOENIGE"
| "KARFREITAG"
| "OSTERSONNTAG"
| "OSTERMONTAG"
| "TAG_DER_ARBEIT"
| "CHRISTIHIMMELFAHRT"
| "MARIAHIMMELFAHRT"
| "PFINGSTSONNTAG"
| "PFINGSTMONTAG"
| "FRONLEICHNAM"
| "DEUTSCHEEINHEIT"
| "REFORMATIONSTAG"
| "ALLERHEILIGEN"
| "BUBETAG"
| "ERSTERWEIHNACHTSFEIERTAG"
| "ZWEITERWEIHNACHTSFEIERTAG"
)
Type: ("BW"
| "BY"
| "BE"
| "BB"
| "HB"
| "HE"
| "HH"
| "MV"
| "NI"
| "NW"
| "RP"
| "SL"
| "SN"
| "ST"
| "SH"
| "TH"
| "BUND"
| "ALL"
)
Type: {name: HolidayType, date: Date, trans: function (lang: string?): string, dateString: string, equals: function (date: Date): boolean}
Properties
name
HolidayTypedate
Datetrans
function (lang: string?): stringdateString
stringequals
function (date: Date): boolean
Type: Array<HolidayType>
Map of HolidayType to translation string.
Type: {}
adds a translation for the holidays (e.g. english). This also allows to override the German names. Hint: Interpolates German for missing translations
Parameters
isoCode
string of the new languagenewTranslation
TranslationTable map of {HolidayType} to translation stringg
Set a language to default language
Parameters
isoCode
string
Get currently set language
Returns string
Checks if a specific date is sunday or holiday.
Parameters
Returns boolean
Check is specific date is holiday.
Parameters
Returns boolean
Parameters
Returns (Holiday | void)
Parameters
date
DateholidayName
HolidayTyperegion
Region (optional, default'ALL'
)
Returns boolean
Returns all holidays of a year in a Region.
Parameters