Jewish calendar entity translations (#144414)

* Move strings from entity descriptions to strings.json

* Use the original name values

* Fix casing

* Use "real" english names as well as transliterated names
This commit is contained in:
Tsvi Mostovicz 2025-05-09 01:00:28 +03:00 committed by GitHub
parent bdf4a21976
commit a37f8b1f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 151 additions and 74 deletions

View File

@ -38,19 +38,19 @@ class JewishCalendarBinarySensorEntityDescription(
BINARY_SENSORS: tuple[JewishCalendarBinarySensorEntityDescription, ...] = ( BINARY_SENSORS: tuple[JewishCalendarBinarySensorEntityDescription, ...] = (
JewishCalendarBinarySensorEntityDescription( JewishCalendarBinarySensorEntityDescription(
key="issur_melacha_in_effect", key="issur_melacha_in_effect",
name="Issur Melacha in Effect", translation_key="issur_melacha_in_effect",
icon="mdi:power-plug-off", icon="mdi:power-plug-off",
is_on=lambda state, now: bool(state.issur_melacha_in_effect(now)), is_on=lambda state, now: bool(state.issur_melacha_in_effect(now)),
), ),
JewishCalendarBinarySensorEntityDescription( JewishCalendarBinarySensorEntityDescription(
key="erev_shabbat_hag", key="erev_shabbat_hag",
name="Erev Shabbat/Hag", translation_key="erev_shabbat_hag",
is_on=lambda state, now: bool(state.erev_shabbat_chag(now)), is_on=lambda state, now: bool(state.erev_shabbat_chag(now)),
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
JewishCalendarBinarySensorEntityDescription( JewishCalendarBinarySensorEntityDescription(
key="motzei_shabbat_hag", key="motzei_shabbat_hag",
name="Motzei Shabbat/Hag", translation_key="motzei_shabbat_hag",
is_on=lambda state, now: bool(state.motzei_shabbat_chag(now)), is_on=lambda state, now: bool(state.motzei_shabbat_chag(now)),
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),

View File

@ -28,31 +28,30 @@ _LOGGER = logging.getLogger(__name__)
INFO_SENSORS: tuple[SensorEntityDescription, ...] = ( INFO_SENSORS: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription( SensorEntityDescription(
key="date", key="date",
name="Date",
icon="mdi:star-david",
translation_key="hebrew_date", translation_key="hebrew_date",
icon="mdi:star-david",
), ),
SensorEntityDescription( SensorEntityDescription(
key="weekly_portion", key="weekly_portion",
name="Parshat Hashavua", translation_key="weekly_portion",
icon="mdi:book-open-variant", icon="mdi:book-open-variant",
device_class=SensorDeviceClass.ENUM, device_class=SensorDeviceClass.ENUM,
), ),
SensorEntityDescription( SensorEntityDescription(
key="holiday", key="holiday",
name="Holiday", translation_key="holiday",
icon="mdi:calendar-star", icon="mdi:calendar-star",
device_class=SensorDeviceClass.ENUM, device_class=SensorDeviceClass.ENUM,
), ),
SensorEntityDescription( SensorEntityDescription(
key="omer_count", key="omer_count",
name="Day of the Omer", translation_key="omer_count",
icon="mdi:counter", icon="mdi:counter",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="daf_yomi", key="daf_yomi",
name="Daf Yomi", translation_key="daf_yomi",
icon="mdi:book-open-variant", icon="mdi:book-open-variant",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
@ -61,106 +60,106 @@ INFO_SENSORS: tuple[SensorEntityDescription, ...] = (
TIME_SENSORS: tuple[SensorEntityDescription, ...] = ( TIME_SENSORS: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription( SensorEntityDescription(
key="alot_hashachar", key="alot_hashachar",
name="Alot Hashachar", # codespell:ignore alot translation_key="alot_hashachar",
icon="mdi:weather-sunset-up", icon="mdi:weather-sunset-up",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="talit_and_tefillin", key="talit_and_tefillin",
name="Talit and Tefillin", translation_key="talit_and_tefillin",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="netz_hachama", key="netz_hachama",
name="Hanetz Hachama", translation_key="netz_hachama",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
), ),
SensorEntityDescription( SensorEntityDescription(
key="sof_zman_shema_gra", key="sof_zman_shema_gra",
name='Latest time for Shma Gr"a', translation_key="sof_zman_shema_gra",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="sof_zman_shema_mga", key="sof_zman_shema_mga",
name='Latest time for Shma MG"A', translation_key="sof_zman_shema_mga",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="sof_zman_tfilla_gra", key="sof_zman_tfilla_gra",
name='Latest time for Tefilla Gr"a', translation_key="sof_zman_tfilla_gra",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="sof_zman_tfilla_mga", key="sof_zman_tfilla_mga",
name='Latest time for Tefilla MG"A', translation_key="sof_zman_tfilla_mga",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="chatzot_hayom", key="chatzot_hayom",
name="Chatzot Hayom", translation_key="chatzot_hayom",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="mincha_gedola", key="mincha_gedola",
name="Mincha Gedola", translation_key="mincha_gedola",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="mincha_ketana", key="mincha_ketana",
name="Mincha Ketana", translation_key="mincha_ketana",
icon="mdi:calendar-clock", icon="mdi:calendar-clock",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="plag_hamincha", key="plag_hamincha",
name="Plag Hamincha", translation_key="plag_hamincha",
icon="mdi:weather-sunset-down", icon="mdi:weather-sunset-down",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="shkia", key="shkia",
name="Shkia", translation_key="shkia",
icon="mdi:weather-sunset", icon="mdi:weather-sunset",
), ),
SensorEntityDescription( SensorEntityDescription(
key="tset_hakohavim_tsom", key="tset_hakohavim_tsom",
name="T'set Hakochavim", translation_key="tset_hakohavim_tsom",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="tset_hakohavim_shabbat", key="tset_hakohavim_shabbat",
name="T'set Hakochavim, 3 stars", translation_key="tset_hakohavim_shabbat",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_shabbat_candle_lighting", key="upcoming_shabbat_candle_lighting",
name="Upcoming Shabbat Candle Lighting", translation_key="upcoming_shabbat_candle_lighting",
icon="mdi:candle", icon="mdi:candle",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_shabbat_havdalah", key="upcoming_shabbat_havdalah",
name="Upcoming Shabbat Havdalah", translation_key="upcoming_shabbat_havdalah",
icon="mdi:weather-night", icon="mdi:weather-night",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_candle_lighting", key="upcoming_candle_lighting",
name="Upcoming Candle Lighting", translation_key="upcoming_candle_lighting",
icon="mdi:candle", icon="mdi:candle",
), ),
SensorEntityDescription( SensorEntityDescription(
key="upcoming_havdalah", key="upcoming_havdalah",
name="Upcoming Havdalah", translation_key="upcoming_havdalah",
icon="mdi:weather-night", icon="mdi:weather-night",
), ),
) )

View File

@ -1,12 +1,90 @@
{ {
"entity": { "entity": {
"binary_sensor": {
"issur_melacha_in_effect": {
"name": "Issur Melacha in effect"
},
"erev_shabbat_hag": {
"name": "Erev Shabbat/Hag"
},
"motzei_shabbat_hag": {
"name": "Motzei Shabbat/Hag"
}
},
"sensor": { "sensor": {
"hebrew_date": { "hebrew_date": {
"name": "Date",
"state_attributes": { "state_attributes": {
"hebrew_year": { "name": "Hebrew year" }, "hebrew_year": { "name": "Hebrew year" },
"hebrew_month_name": { "name": "Hebrew month name" }, "hebrew_month_name": { "name": "Hebrew month name" },
"hebrew_day": { "name": "Hebrew day" } "hebrew_day": { "name": "Hebrew day" }
} }
},
"weekly_portion": {
"name": "Weekly Torah portion"
},
"holiday": {
"name": "Holiday"
},
"omer_count": {
"name": "Day of the Omer"
},
"daf_yomi": {
"name": "Daf Yomi"
},
"alot_hashachar": {
"name": "Halachic dawn (Alot Hashachar)"
},
"talit_and_tefillin": {
"name": "Earliest time for Talit and Tefillin"
},
"netz_hachama": {
"name": "Halachic sunrise (Netz Hachama)"
},
"sof_zman_shema_gra": {
"name": "Latest time for Shma Gr\"a"
},
"sof_zman_shema_mga": {
"name": "Latest time for Shma MG\"A"
},
"sof_zman_tfilla_gra": {
"name": "Latest time for Tefilla Gr\"a"
},
"sof_zman_tfilla_mga": {
"name": "Latest time for Tefilla MG\"A"
},
"chatzot_hayom": {
"name": "Halachic midday (Chatzot Hayom)"
},
"mincha_gedola": {
"name": "Mincha Gedola"
},
"mincha_ketana": {
"name": "Mincha Ketana"
},
"plag_hamincha": {
"name": "Plag Hamincha"
},
"shkia": {
"name": "Sunset (Shkia)"
},
"tset_hakohavim_tsom": {
"name": "Nightfall (T'set Hakochavim)"
},
"tset_hakohavim_shabbat": {
"name": "Nightfall (T'set Hakochavim, 3 stars)"
},
"upcoming_shabbat_candle_lighting": {
"name": "Upcoming Shabbat candle lighting"
},
"upcoming_shabbat_havdalah": {
"name": "Upcoming Shabbat Havdalah"
},
"upcoming_candle_lighting": {
"name": "Upcoming candle lighting"
},
"upcoming_havdalah": {
"name": "Upcoming Havdalah"
} }
} }
}, },

View File

@ -94,21 +94,21 @@ TEST_PARAMS = [
"state": "נצבים", "state": "נצבים",
"attr": { "attr": {
"device_class": "enum", "device_class": "enum",
"friendly_name": "Jewish Calendar Parshat Hashavua", "friendly_name": "Jewish Calendar Weekly Torah portion",
"icon": "mdi:book-open-variant", "icon": "mdi:book-open-variant",
"options": list(Parasha), "options": list(Parasha),
}, },
}, },
"he", "he",
"parshat_hashavua", "weekly_torah_portion",
id="torah_reading", id="torah_portion",
), ),
pytest.param( pytest.param(
"New York", "New York",
dt(2018, 9, 8), dt(2018, 9, 8),
{"state": dt(2018, 9, 8, 19, 47)}, {"state": dt(2018, 9, 8, 19, 47)},
"he", "he",
"t_set_hakochavim", "nightfall_t_set_hakochavim",
id="first_stars_ny", id="first_stars_ny",
), ),
pytest.param( pytest.param(
@ -116,7 +116,7 @@ TEST_PARAMS = [
dt(2018, 9, 8), dt(2018, 9, 8),
{"state": dt(2018, 9, 8, 19, 21)}, {"state": dt(2018, 9, 8, 19, 21)},
"he", "he",
"t_set_hakochavim", "nightfall_t_set_hakochavim",
id="first_stars_jerusalem", id="first_stars_jerusalem",
), ),
pytest.param( pytest.param(
@ -124,8 +124,8 @@ TEST_PARAMS = [
dt(2018, 10, 14), dt(2018, 10, 14),
{"state": "לך לך"}, {"state": "לך לך"},
"he", "he",
"parshat_hashavua", "weekly_torah_portion",
id="torah_reading_weekday", id="torah_portion_weekday",
), ),
pytest.param( pytest.param(
"Jerusalem", "Jerusalem",
@ -185,8 +185,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 1, 20, 10), "en_upcoming_havdalah": dt(2018, 9, 1, 20, 10),
"en_upcoming_shabbat_candle_lighting": dt(2018, 8, 31, 19, 12), "en_upcoming_shabbat_candle_lighting": dt(2018, 8, 31, 19, 12),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 1, 20, 10), "en_upcoming_shabbat_havdalah": dt(2018, 9, 1, 20, 10),
"en_parshat_hashavua": "Ki Tavo", "en_weekly_torah_portion": "Ki Tavo",
"he_parshat_hashavua": "כי תבוא", "he_weekly_torah_portion": "כי תבוא",
}, },
None, None,
id="currently_first_shabbat", id="currently_first_shabbat",
@ -199,8 +199,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 1, 20, 18), "en_upcoming_havdalah": dt(2018, 9, 1, 20, 18),
"en_upcoming_shabbat_candle_lighting": dt(2018, 8, 31, 19, 12), "en_upcoming_shabbat_candle_lighting": dt(2018, 8, 31, 19, 12),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 1, 20, 18), "en_upcoming_shabbat_havdalah": dt(2018, 9, 1, 20, 18),
"en_parshat_hashavua": "Ki Tavo", "en_weekly_torah_portion": "Ki Tavo",
"he_parshat_hashavua": "כי תבוא", "he_weekly_torah_portion": "כי תבוא",
}, },
50, # Havdalah offset 50, # Havdalah offset
id="currently_first_shabbat_with_havdalah_offset", id="currently_first_shabbat_with_havdalah_offset",
@ -213,8 +213,8 @@ SHABBAT_PARAMS = [
"en_upcoming_shabbat_havdalah": dt(2018, 9, 1, 20, 10), "en_upcoming_shabbat_havdalah": dt(2018, 9, 1, 20, 10),
"en_upcoming_candle_lighting": dt(2018, 8, 31, 19, 12), "en_upcoming_candle_lighting": dt(2018, 8, 31, 19, 12),
"en_upcoming_havdalah": dt(2018, 9, 1, 20, 10), "en_upcoming_havdalah": dt(2018, 9, 1, 20, 10),
"en_parshat_hashavua": "Ki Tavo", "en_weekly_torah_portion": "Ki Tavo",
"he_parshat_hashavua": "כי תבוא", "he_weekly_torah_portion": "כי תבוא",
}, },
None, None,
id="currently_first_shabbat_bein_hashmashot_lagging_date", id="currently_first_shabbat_bein_hashmashot_lagging_date",
@ -227,8 +227,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 8, 19, 58), "en_upcoming_havdalah": dt(2018, 9, 8, 19, 58),
"en_upcoming_shabbat_candle_lighting": dt(2018, 9, 7, 19), "en_upcoming_shabbat_candle_lighting": dt(2018, 9, 7, 19),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 8, 19, 58), "en_upcoming_shabbat_havdalah": dt(2018, 9, 8, 19, 58),
"en_parshat_hashavua": "Nitzavim", "en_weekly_torah_portion": "Nitzavim",
"he_parshat_hashavua": "נצבים", "he_weekly_torah_portion": "נצבים",
}, },
None, None,
id="after_first_shabbat", id="after_first_shabbat",
@ -241,8 +241,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 8, 19, 58), "en_upcoming_havdalah": dt(2018, 9, 8, 19, 58),
"en_upcoming_shabbat_candle_lighting": dt(2018, 9, 7, 19), "en_upcoming_shabbat_candle_lighting": dt(2018, 9, 7, 19),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 8, 19, 58), "en_upcoming_shabbat_havdalah": dt(2018, 9, 8, 19, 58),
"en_parshat_hashavua": "Nitzavim", "en_weekly_torah_portion": "Nitzavim",
"he_parshat_hashavua": "נצבים", "he_weekly_torah_portion": "נצבים",
}, },
None, None,
id="friday_upcoming_shabbat", id="friday_upcoming_shabbat",
@ -255,8 +255,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 11, 19, 53), "en_upcoming_havdalah": dt(2018, 9, 11, 19, 53),
"en_upcoming_shabbat_candle_lighting": dt(2018, 9, 14, 18, 48), "en_upcoming_shabbat_candle_lighting": dt(2018, 9, 14, 18, 48),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 15, 19, 46), "en_upcoming_shabbat_havdalah": dt(2018, 9, 15, 19, 46),
"en_parshat_hashavua": "Vayeilech", "en_weekly_torah_portion": "Vayeilech",
"he_parshat_hashavua": "וילך", "he_weekly_torah_portion": "וילך",
"en_holiday": "Erev Rosh Hashana", "en_holiday": "Erev Rosh Hashana",
"he_holiday": "ערב ראש השנה", "he_holiday": "ערב ראש השנה",
}, },
@ -271,8 +271,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 11, 19, 53), "en_upcoming_havdalah": dt(2018, 9, 11, 19, 53),
"en_upcoming_shabbat_candle_lighting": dt(2018, 9, 14, 18, 48), "en_upcoming_shabbat_candle_lighting": dt(2018, 9, 14, 18, 48),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 15, 19, 46), "en_upcoming_shabbat_havdalah": dt(2018, 9, 15, 19, 46),
"en_parshat_hashavua": "Vayeilech", "en_weekly_torah_portion": "Vayeilech",
"he_parshat_hashavua": "וילך", "he_weekly_torah_portion": "וילך",
"en_holiday": "Rosh Hashana I", "en_holiday": "Rosh Hashana I",
"he_holiday": "א' ראש השנה", "he_holiday": "א' ראש השנה",
}, },
@ -287,8 +287,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 11, 19, 53), "en_upcoming_havdalah": dt(2018, 9, 11, 19, 53),
"en_upcoming_shabbat_candle_lighting": dt(2018, 9, 14, 18, 48), "en_upcoming_shabbat_candle_lighting": dt(2018, 9, 14, 18, 48),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 15, 19, 46), "en_upcoming_shabbat_havdalah": dt(2018, 9, 15, 19, 46),
"en_parshat_hashavua": "Vayeilech", "en_weekly_torah_portion": "Vayeilech",
"he_parshat_hashavua": "וילך", "he_weekly_torah_portion": "וילך",
"en_holiday": "Rosh Hashana II", "en_holiday": "Rosh Hashana II",
"he_holiday": "ב' ראש השנה", "he_holiday": "ב' ראש השנה",
}, },
@ -303,8 +303,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 9, 29, 19, 22), "en_upcoming_havdalah": dt(2018, 9, 29, 19, 22),
"en_upcoming_shabbat_candle_lighting": dt(2018, 9, 28, 18, 25), "en_upcoming_shabbat_candle_lighting": dt(2018, 9, 28, 18, 25),
"en_upcoming_shabbat_havdalah": dt(2018, 9, 29, 19, 22), "en_upcoming_shabbat_havdalah": dt(2018, 9, 29, 19, 22),
"en_parshat_hashavua": "none", "en_weekly_torah_portion": "none",
"he_parshat_hashavua": "none", "he_weekly_torah_portion": "none",
}, },
None, None,
id="currently_shabbat_chol_hamoed", id="currently_shabbat_chol_hamoed",
@ -317,8 +317,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 10, 2, 19, 17), "en_upcoming_havdalah": dt(2018, 10, 2, 19, 17),
"en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 18, 13), "en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 18, 13),
"en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 19, 11), "en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 19, 11),
"en_parshat_hashavua": "Bereshit", "en_weekly_torah_portion": "Bereshit",
"he_parshat_hashavua": "בראשית", "he_weekly_torah_portion": "בראשית",
"en_holiday": "Hoshana Raba", "en_holiday": "Hoshana Raba",
"he_holiday": "הושענא רבה", "he_holiday": "הושענא רבה",
}, },
@ -333,8 +333,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 10, 2, 19, 17), "en_upcoming_havdalah": dt(2018, 10, 2, 19, 17),
"en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 18, 13), "en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 18, 13),
"en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 19, 11), "en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 19, 11),
"en_parshat_hashavua": "Bereshit", "en_weekly_torah_portion": "Bereshit",
"he_parshat_hashavua": "בראשית", "he_weekly_torah_portion": "בראשית",
"en_holiday": "Shmini Atzeret", "en_holiday": "Shmini Atzeret",
"he_holiday": "שמיני עצרת", "he_holiday": "שמיני עצרת",
}, },
@ -349,8 +349,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 10, 2, 19, 17), "en_upcoming_havdalah": dt(2018, 10, 2, 19, 17),
"en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 18, 13), "en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 18, 13),
"en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 19, 11), "en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 19, 11),
"en_parshat_hashavua": "Bereshit", "en_weekly_torah_portion": "Bereshit",
"he_parshat_hashavua": "בראשית", "he_weekly_torah_portion": "בראשית",
"en_holiday": "Simchat Torah", "en_holiday": "Simchat Torah",
"he_holiday": "שמחת תורה", "he_holiday": "שמחת תורה",
}, },
@ -365,8 +365,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 10, 1, 19, 1), "en_upcoming_havdalah": dt(2018, 10, 1, 19, 1),
"en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 17, 39), "en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 17, 39),
"en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 18, 54), "en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 18, 54),
"en_parshat_hashavua": "Bereshit", "en_weekly_torah_portion": "Bereshit",
"he_parshat_hashavua": "בראשית", "he_weekly_torah_portion": "בראשית",
"en_holiday": "Hoshana Raba", "en_holiday": "Hoshana Raba",
"he_holiday": "הושענא רבה", "he_holiday": "הושענא רבה",
}, },
@ -381,8 +381,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 10, 1, 19, 1), "en_upcoming_havdalah": dt(2018, 10, 1, 19, 1),
"en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 17, 39), "en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 17, 39),
"en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 18, 54), "en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 18, 54),
"en_parshat_hashavua": "Bereshit", "en_weekly_torah_portion": "Bereshit",
"he_parshat_hashavua": "בראשית", "he_weekly_torah_portion": "בראשית",
"en_holiday": "Shmini Atzeret, Simchat Torah", "en_holiday": "Shmini Atzeret, Simchat Torah",
"he_holiday": "שמיני עצרת, שמחת תורה", "he_holiday": "שמיני עצרת, שמחת תורה",
}, },
@ -397,8 +397,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2018, 10, 6, 18, 54), "en_upcoming_havdalah": dt(2018, 10, 6, 18, 54),
"en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 17, 39), "en_upcoming_shabbat_candle_lighting": dt(2018, 10, 5, 17, 39),
"en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 18, 54), "en_upcoming_shabbat_havdalah": dt(2018, 10, 6, 18, 54),
"en_parshat_hashavua": "Bereshit", "en_weekly_torah_portion": "Bereshit",
"he_parshat_hashavua": "בראשית", "he_weekly_torah_portion": "בראשית",
}, },
None, None,
id="after_one_day_yom_tov_in_israel", id="after_one_day_yom_tov_in_israel",
@ -411,8 +411,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2016, 6, 13, 21, 19), "en_upcoming_havdalah": dt(2016, 6, 13, 21, 19),
"en_upcoming_shabbat_candle_lighting": dt(2016, 6, 10, 20, 9), "en_upcoming_shabbat_candle_lighting": dt(2016, 6, 10, 20, 9),
"en_upcoming_shabbat_havdalah": "unknown", "en_upcoming_shabbat_havdalah": "unknown",
"en_parshat_hashavua": "Bamidbar", "en_weekly_torah_portion": "Bamidbar",
"he_parshat_hashavua": "במדבר", "he_weekly_torah_portion": "במדבר",
"en_holiday": "Erev Shavuot", "en_holiday": "Erev Shavuot",
"he_holiday": "ערב שבועות", "he_holiday": "ערב שבועות",
}, },
@ -427,8 +427,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2016, 6, 13, 21, 19), "en_upcoming_havdalah": dt(2016, 6, 13, 21, 19),
"en_upcoming_shabbat_candle_lighting": dt(2016, 6, 17, 20, 12), "en_upcoming_shabbat_candle_lighting": dt(2016, 6, 17, 20, 12),
"en_upcoming_shabbat_havdalah": dt(2016, 6, 18, 21, 21), "en_upcoming_shabbat_havdalah": dt(2016, 6, 18, 21, 21),
"en_parshat_hashavua": "Nasso", "en_weekly_torah_portion": "Nasso",
"he_parshat_hashavua": "נשא", "he_weekly_torah_portion": "נשא",
"en_holiday": "Shavuot", "en_holiday": "Shavuot",
"he_holiday": "שבועות", "he_holiday": "שבועות",
}, },
@ -443,8 +443,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2017, 9, 23, 19, 11), "en_upcoming_havdalah": dt(2017, 9, 23, 19, 11),
"en_upcoming_shabbat_candle_lighting": dt(2017, 9, 22, 17, 56), "en_upcoming_shabbat_candle_lighting": dt(2017, 9, 22, 17, 56),
"en_upcoming_shabbat_havdalah": dt(2017, 9, 23, 19, 11), "en_upcoming_shabbat_havdalah": dt(2017, 9, 23, 19, 11),
"en_parshat_hashavua": "Ha'Azinu", "en_weekly_torah_portion": "Ha'Azinu",
"he_parshat_hashavua": "האזינו", "he_weekly_torah_portion": "האזינו",
"en_holiday": "Rosh Hashana I", "en_holiday": "Rosh Hashana I",
"he_holiday": "א' ראש השנה", "he_holiday": "א' ראש השנה",
}, },
@ -459,8 +459,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2017, 9, 23, 19, 11), "en_upcoming_havdalah": dt(2017, 9, 23, 19, 11),
"en_upcoming_shabbat_candle_lighting": dt(2017, 9, 22, 17, 56), "en_upcoming_shabbat_candle_lighting": dt(2017, 9, 22, 17, 56),
"en_upcoming_shabbat_havdalah": dt(2017, 9, 23, 19, 11), "en_upcoming_shabbat_havdalah": dt(2017, 9, 23, 19, 11),
"en_parshat_hashavua": "Ha'Azinu", "en_weekly_torah_portion": "Ha'Azinu",
"he_parshat_hashavua": "האזינו", "he_weekly_torah_portion": "האזינו",
"en_holiday": "Rosh Hashana II", "en_holiday": "Rosh Hashana II",
"he_holiday": "ב' ראש השנה", "he_holiday": "ב' ראש השנה",
}, },
@ -475,8 +475,8 @@ SHABBAT_PARAMS = [
"en_upcoming_havdalah": dt(2017, 9, 23, 19, 11), "en_upcoming_havdalah": dt(2017, 9, 23, 19, 11),
"en_upcoming_shabbat_candle_lighting": dt(2017, 9, 22, 17, 56), "en_upcoming_shabbat_candle_lighting": dt(2017, 9, 22, 17, 56),
"en_upcoming_shabbat_havdalah": dt(2017, 9, 23, 19, 11), "en_upcoming_shabbat_havdalah": dt(2017, 9, 23, 19, 11),
"en_parshat_hashavua": "Ha'Azinu", "en_weekly_torah_portion": "Ha'Azinu",
"he_parshat_hashavua": "האזינו", "he_weekly_torah_portion": "האזינו",
"en_holiday": "", "en_holiday": "",
"he_holiday": "", "he_holiday": "",
}, },