Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slovenia - Fix observance holidays and holiday naming #738

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading