Skip to content

Commit

Permalink
Slovenia - Fix observance holidays and holiday naming (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager authored Jan 8, 2025
1 parent d4ccc1d commit 2a78d47
Showing 1 changed file with 41 additions and 4 deletions.
45 changes: 41 additions & 4 deletions src/Nager.Date/HolidayProviders/SloveniaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
new HolidaySpecification
{
Date = new DateTime(year, 5, 1),
EnglishName = "May Day Holiday",
EnglishName = "Labour Day",
LocalName = "praznik dela",
HolidayTypes = HolidayTypes.Public
},
new HolidaySpecification
{
Date = new DateTime(year, 5, 2),
EnglishName = "May Day Holiday",
EnglishName = "Labour Day",
LocalName = "praznik dela",
HolidayTypes = HolidayTypes.Public
},
Expand All @@ -85,6 +85,34 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
HolidayTypes = HolidayTypes.Public
},
new HolidaySpecification
{
Date = new DateTime(year, 8, 15),
EnglishName = "Unification of Prekmurje Slovenes with the Mother Nation",
LocalName = "združitev prekmurskih Slovencev z matičnim narodom",
HolidayTypes = HolidayTypes.Observance
},
new HolidaySpecification
{
Date = new DateTime(year, 9, 15),
EnglishName = "Integration of Primorska into the Homeland",
LocalName = "priključitev Primorske k matični domovini",
HolidayTypes = HolidayTypes.Observance
},
new HolidaySpecification
{
Date = new DateTime(year, 9, 23),
EnglishName = "Slovenian Sports Day",
LocalName = "dan slovenskega športa",
HolidayTypes = HolidayTypes.Observance
},
new HolidaySpecification
{
Date = new DateTime(year, 9, 25),
EnglishName = "Sovereignty Day",
LocalName = "dan slovenskega športa",
HolidayTypes = HolidayTypes.Observance
},
new HolidaySpecification
{
Date = new DateTime(year, 10, 31),
EnglishName = "Reformation Day",
Expand All @@ -99,6 +127,13 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
HolidayTypes = HolidayTypes.Public
},
new HolidaySpecification
{
Date = new DateTime(year, 11, 23),
EnglishName = "Rudolf Maister Day",
LocalName = "dan Rudolfa Maistra",
HolidayTypes = HolidayTypes.Observance
},
new HolidaySpecification
{
Date = new DateTime(year, 12, 25),
EnglishName = "Christmas Day",
Expand All @@ -114,7 +149,7 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
},
this._catholicProvider.EasterSunday("velikonočna nedelja in ponedeljek", year),
this._catholicProvider.EasterMonday("velikonočna nedelja in ponedeljek", year),
this._catholicProvider.Pentecost("binkoštna nedelja, binkošti", year)
this._catholicProvider.Pentecost("binkoštna nedelja", year) //Whit Sunday
};

holidaySpecifications.AddIfNotNull(this.SolidarityDay(year));
Expand Down Expand Up @@ -143,7 +178,9 @@ public override IEnumerable<string> GetSources()
{
return
[
"https://en.wikipedia.org/wiki/Public_holidays_in_Slovenia"
"https://en.wikipedia.org/wiki/Public_holidays_in_Slovenia",
"https://www.gov.si/en/topics/national-holidays/",
"https://www.gov.si/teme/drzavni-prazniki-in-dela-prosti-dnevi/"
];
}
}
Expand Down

0 comments on commit 2a78d47

Please sign in to comment.