mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Show the hebrew date in the correct language in the response
This commit is contained in:
@@ -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()),
|
||||
|
Reference in New Issue
Block a user