-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Adding German holidays #8
Conversation
I was just about to open this PR! I also asked on Twitter about adding regional public holidays. Looking at the code it would be quite a big change to specify the region alongside the country. |
For easy implementing we could use something like de-sh but that's not "normed". |
Notes on German Holidays
|
We are open to support this, feel free to open a PR. As this is also discussed on the Indian PR, I've added it as feature request: #14 to have a single discussion on it. |
I've added documentation on how I think we should manage regions or states: Could you get this PR up to date? |
Will do 😊 |
@Nielsvanpach I think #37 superseeds this PR, since it's implemented all states 😊 |
@arnebr As my PR won't get merged, there's still a need for German state holidays. 😕 Feel free to add this to your PR! I don't think that this package has a good implementation of it as of now, but we have to work with what we've got I guess. The package mentioned a few comments above has a good implementation with states and holiday types. |
Maybe @marlonbasten you could do a review of the holidays :) I implemented all of them now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good, thanks!
expect(formatDates($holidays))->toMatchSnapshot(); | ||
})->with( | ||
[ | ||
['BW',12], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you actually checked the results in the snapshots? Otherwise having only 1 region test is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes thats why i found the error in the SN,BB, BE state :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks great, thanks for your work! 👍
This uses the nation-wide holidays for Germany from
https://de.wikipedia.org/wiki/Gesetzliche_Feiertage_in_Deutschland
Regional state holidays are not part implemented in the library. Maybe @freekmurze as future plan?