+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ version upgrades.

## Documentation

The documentation is hosted on [Read the Docs](https://holidays.readthedocs.io/).
The documentation is hosted on [Read the Docs](https://holidays.readthedocs.io).

## Quick Start

Expand Down Expand Up @@ -99,9 +99,9 @@ and detailed information.

## Available Countries

We currently support 248 country codes. The standard way to refer to a country is by using its [ISO
3166-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes), the same used
for domain names, and for a subdivision its [ISO 3166-2
We currently support 249 country codes and are fully compatible with [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html).
The standard way to refer to a country is by using its [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes),
the same used for domain names, and for a subdivision its [ISO 3166-2
code](https://en.wikipedia.org/wiki/ISO_3166-2). Some countries have common or foreign names or
abbreviations as aliases for their subdivisions. These are defined in the (optional)
`subdivisions_aliases` attribute. Some of the countries support more than one language for holiday
Expand Down Expand Up @@ -1863,6 +1863,13 @@ any) in brackets, available languages and additional holiday categories. All cou
<td></td>
</tr>
<tr>
<td>Western Sahara</td>
<td>EH</td>
<td></td>
<td><strong>ar</strong>, en_US, es, fr</td>
<td></td>
</tr>
<tr>
<td>Yemen</td>
<td>YE</td>
<td></td>
Expand Down
1 change: 1 addition & 0 deletions holidays/countries/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
from holidays.countries.venezuela import Venezuela, VE, VEN
from holidays.countries.vietnam import Vietnam, VN, VNM
from holidays.countries.wallis_and_futuna import WallisAndFutuna, WF, WLF, HolidaysWF
from holidays.countries.western_sahara import WesternSahara, EH, ESH
from holidays.countries.yemen import Yemen, YE, YEM
from holidays.countries.zambia import Zambia, ZM, ZMB
from holidays.countries.zimbabwe import Zimbabwe, ZW, ZWE
92 changes: 92 additions & 0 deletions holidays/countries/western_sahara.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from gettext import gettext as tr

from holidays.groups import IslamicHolidays
from holidays.holiday_base import HolidayBase


class WesternSahara(HolidayBase, IslamicHolidays):
"""Western Sahara holidays.

References:
* [1999 Constitution (es)](https://web.archive.org/web/20240210155831/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/Constitucion-RASD_1999_es.pdf)
* [1999 Constitution (fr)](https://web.archive.org/web/20250824061216/https://www.arso.org/03-const.99.htm)
* [2003 Constitution (ar)](https://web.archive.org/web/20240415014236/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/Constitucion-RASD_2003_ar.pdf)
* [2011 Constitution (es)](https://web.archive.org/web/20240415014236/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/RASD_Constitucion_2011_es.pdf)
* [2015 Constitution (en)](https://web.archive.org/web/20240605212800/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/RASD_Constitution-of-SADR-2015_en.pdf)
* [2019 Constitution (ar)](https://web.archive.org/web/20240415014236/https://www.usc.es/export9/sites/webinstitucional/gl/institutos/ceso/descargas/RASD_Const_2019_ar.pdf)
"""

country = "EH"
default_language = "ar"
# %s (estimated).
estimated_label = tr("%s (المقدرة)")
# 1999 Constitution was adopted by the 10th Congress on September 4th, 1999.
start_year = 2000
supported_languages = ("ar", "en_US", "es", "fr")

def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
"""
Args:
islamic_show_estimated:
Whether to add "estimated" label to Islamic holidays name
if holiday date is estimated.
"""
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
super().__init__(*args, **kwargs)

def _populate_public_holidays(self):
# Proclamation of the SADR.
self._add_holiday_feb_27(tr("إعلان الجمهورية العربية الصحراوية الديمقراطية"))

# First Martyr.
self._add_holiday_mar_8(tr("يوم الشهيد الأول"))

# Creation of the Polisario Front.
self._add_holiday_may_10(tr("تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب"))

# Commencement of the Armed Struggle.
self._add_holiday_may_20(tr("اندلاع الكفاح المسلح"))

# Martyrs' Day.
self._add_holiday_jun_9(tr("يوم الشهداء"))

# Uprising Day.
self._add_holiday_jun_17(tr("يوم الانتفاضة"))

# National Unity Day.
self._add_holiday_oct_12(tr("عيد الوحدة الوطنية"))

# Added in the 2003 Constitution on October 19th, 2003.
if self._year >= 2003:
# Eid al-Fitr.
self._add_eid_al_fitr_day(tr("عيد الفطر المبارك"))

if self._year >= 2004:
# Islamic New Year.
self._add_islamic_new_year_day(tr("رأس السنة الهجرية"))

# Prophet's Birthday.
self._add_mawlid_day(tr("المولد النبوي الشريف"))

# Eid al-Adha.
self._add_eid_al_adha_day(tr("عيد الأضحى المبارك"))


class EH(WesternSahara):
pass


class ESH(WesternSahara):
pass
77 changes: 77 additions & 0 deletions holidays/locale/ar/LC_MESSAGES/EH.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Western Sahara holidays.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.83\n"
"POT-Creation-Date: 2025-10-13 11:31+0700\n"
"PO-Revision-Date: 2025-10-13 15:25+0700\n"
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
"Language-Team: Holidays Localization Team\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingva 5.0.6\n"
"X-Generator: Poedit 3.7\n"
"X-Source-Language: ar\n"

#. %s (estimated).
#, c-format
msgid "%s (المقدرة)"
msgstr ""

#. Proclamation of the SADR.
msgid "إعلان الجمهورية العربية الصحراوية الديمقراطية"
msgstr ""

#. First Martyr.
msgid "يوم الشهيد الأول"
msgstr ""

#. Creation of the Polisario Front.
msgid "تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب"
msgstr ""

#. Commencement of the Armed Struggle.
msgid "اندلاع الكفاح المسلح"
msgstr ""

#. Martyrs' Day.
msgid "يوم الشهداء"
msgstr ""

#. Uprising Day.
msgid "يوم الانتفاضة"
msgstr ""

#. National Unity Day.
msgid "عيد الوحدة الوطنية"
msgstr ""

#. Eid al-Fitr.
msgid "عيد الفطر المبارك"
msgstr ""

#. Islamic New Year.
msgid "رأس السنة الهجرية"
msgstr ""

#. Prophet's Birthday.
msgid "المولد النبوي الشريف"
msgstr ""

#. Eid al-Adha.
msgid "عيد الأضحى المبارك"
msgstr ""
77 changes: 77 additions & 0 deletions holidays/locale/en_US/LC_MESSAGES/EH.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Western Sahara holidays en_US localization.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.83\n"
"POT-Creation-Date: 2025-10-13 11:31+0700\n"
"PO-Revision-Date: 2025-10-13 15:25+0700\n"
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
"Language-Team: Holidays Localization Team\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingva 5.0.6\n"
"X-Generator: Poedit 3.7\n"
"X-Source-Language: ar\n"

#. %s (estimated).
#, c-format
msgid "%s (المقدرة)"
msgstr "%s (estimated)"

#. Proclamation of the SADR.
msgid "إعلان الجمهورية العربية الصحراوية الديمقراطية"
msgstr "Proclamation of the SADR"

#. First Martyr.
msgid "يوم الشهيد الأول"
msgstr "First Martyr"

#. Creation of the Polisario Front.
msgid "تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب"
msgstr "Creation of the Polisario Front"

#. Commencement of the Armed Struggle.
msgid "اندلاع الكفاح المسلح"
msgstr "Commencement of the Armed Struggle"

#. Martyrs' Day.
msgid "يوم الشهداء"
msgstr "Martyrs' Day"

#. Uprising Day.
msgid "يوم الانتفاضة"
msgstr "Uprising Day"

#. National Unity Day.
msgid "عيد الوحدة الوطنية"
msgstr "National Unity Day"

#. Eid al-Fitr.
msgid "عيد الفطر المبارك"
msgstr "Eid al-Fitr"

#. Islamic New Year.
msgid "رأس السنة الهجرية"
msgstr "Islamic New Year"

#. Prophet's Birthday.
msgid "المولد النبوي الشريف"
msgstr "Prophet's Birthday"

#. Eid al-Adha.
msgid "عيد الأضحى المبارك"
msgstr "Eid al-Adha"
77 changes: 77 additions & 0 deletions holidays/locale/es/LC_MESSAGES/EH.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Western Sahara holidays es localization.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.83\n"
"POT-Creation-Date: 2025-10-13 11:31+0700\n"
"PO-Revision-Date: 2025-10-13 15:25+0700\n"
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
"Language-Team: Holidays Localization Team\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingva 5.0.6\n"
"X-Generator: Poedit 3.7\n"
"X-Source-Language: ar\n"

#. %s (estimated).
#, c-format
msgid "%s (المقدرة)"
msgstr "%s (estimado)"

#. Proclamation of the SADR.
msgid "إعلان الجمهورية العربية الصحراوية الديمقراطية"
msgstr "Proclamación de la República Árabe Saharaui Democrática"

#. First Martyr.
msgid "يوم الشهيد الأول"
msgstr "Primer mártir"

#. Creation of the Polisario Front.
msgid "تأسيس الجبهة الشعبية لتحرير الساقية الحمراء ووادي الذهب"
msgstr "Creación del Frente POLISARIO"

#. Commencement of the Armed Struggle.
msgid "اندلاع الكفاح المسلح"
msgstr "Inicio de la lucha armada"

#. Martyrs' Day.
msgid "يوم الشهداء"
msgstr "Día de los mártires"

#. Uprising Day.
msgid "يوم الانتفاضة"
msgstr "Día de la insurrección"

#. National Unity Day.
msgid "عيد الوحدة الوطنية"
msgstr "Fiesta de la unidad nacional"

#. Eid al-Fitr.
msgid "عيد الفطر المبارك"
msgstr "Eid al-Fitr"

#. Islamic New Year.
msgid "رأس السنة الهجرية"
msgstr "Primer día del año de la Hégira"

#. Prophet's Birthday.
msgid "المولد النبوي الشريف"
msgstr "Santo Nacimiento del Profeta"

#. Eid al-Adha.
msgid "عيد الأضحى المبارك"
msgstr "Eid al-Adha"
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载