Show the hebrew date in the correct language in the response

This commit is contained in:
Tsvi Mostovicz
2025-03-25 19:20:10 +00:00
parent 755e8aaa1c
commit 59442d16c5

View File

@@ -46,6 +46,9 @@ def async_setup_services(hass: HomeAssistant) -> None:
# the full language name
language = cast(Language, SUPPORTED_LANGUAGES[call.data[CONF_LANGUAGE]])
# Show the Hebrew Date in the response in the correct language
hebrew_date.set_language(language)
omer = Omer(date=hebrew_date, nusach=nusach, language=language)
return {
"message": str(omer.count_str()),