Skip to content

Commit

Permalink
translate holidays to english is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
MaiBe-ctrl committed Jun 22, 2024
1 parent a436231 commit 60260bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neuralprophet/event_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_all_holidays(years, country):
single_country = "TUR" if single_country == "TU" else single_country
# get dict of dates and their holiday name
single_country_specific_holidays = country_holidays(
country=single_country, subdiv=subdivision, years=years, expand=True, observed=False
country=single_country, subdiv=subdivision, years=years, expand=True, observed=False, language="en"
)
# invert order - for given holiday, store list of dates
for date, name in single_country_specific_holidays.items():
Expand Down
4 changes: 3 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,7 @@ def test_multiple_countries():
holiday_names = m.model.config_holidays.holiday_names
assert "Independence Day" in holiday_names
assert "Christmas Day" in holiday_names
assert "Erster Weihnachtstag" not in holiday_names
assert "Neujahr" not in holiday_names


Expand Down

0 comments on commit 60260bd

Please sign in to comment.