holidays language="en_US"
This commit is contained in:
parent
fb62dffa5c
commit
22be45a6a3
|
@ -86,7 +86,7 @@ def get_holidays(country: str, start_date: date, end_date: date) -> list[Holiday
|
||||||
"""Get holidays."""
|
"""Get holidays."""
|
||||||
found: list[Holiday] = []
|
found: list[Holiday] = []
|
||||||
for year in range(start_date.year, end_date.year + 1):
|
for year in range(start_date.year, end_date.year + 1):
|
||||||
hols = holidays.country_holidays(country.upper(), years=year, language="en")
|
hols = holidays.country_holidays(country.upper(), years=year, language="en_US")
|
||||||
found += [
|
found += [
|
||||||
Holiday(
|
Holiday(
|
||||||
date=hol_date,
|
date=hol_date,
|
||||||
|
|
Loading…
Reference in a new issue