bruxy70 / Holidays

📅 Custom Home Assistant integration for public holidays - also used for garbage_collection integration to automatically move scheduled events that fall on a public holiday (by an automation blueprint)
MIT License
45 stars 12 forks source link

Option to select the preferred Python Holidays language #51

Closed o2rr closed 1 year ago

o2rr commented 1 year ago

Before you submit a new bug report, please check that

Is your feature request related to a problem? Please describe.

Leaving in the French part of Switzerland I got all holidays name in German instead of French.

Describe the solution you'd like

Python Holidays supports additional languages but we are missing the option to use them.

Describe alternatives you've considered

Tried to create a custom HA helper to fix but unsuccessfully.

Additional context

No response

bruxy70 commented 1 year ago

I think they added that to holidays library from version 0.26. Home Assistant currently uses version 0.21.13, so it does not have the support for localisations yet. (Home Assistant uses the library for its workday component - so this defines the version, I cannot choose a different version). So once they update the version, I will add this feature.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity in last 30 days. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.