Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,10 @@ any) in brackets, available languages and additional holiday categories. All cou
<td></td>
</tr>
<tr>
<td>Mauritania</td>
<td>MR</td>
<td></td>
<td>Mauritius</td>
<td>MU</td>
<td></td>
<td><strong>en_MU</strong>, en_US</td>
Comment thread
PPsyrius marked this conversation as resolved.
Outdated
<td></td>
</tr>
<tr>
Expand Down
23 changes: 13 additions & 10 deletions holidays/countries/mauritania.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)

from gettext import gettext as tr

from holidays.calendars.gregorian import FRI, SAT
from holidays.groups import InternationalHolidays, IslamicHolidays
from holidays.holiday_base import HolidayBase
Expand All @@ -24,6 +26,7 @@ class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
"""

country = "MR"
default_language = "ar"
# %s (estimated).
estimated_label = "%s (estimated)"
Comment thread
KJhellico marked this conversation as resolved.
Outdated
weekend = {FRI, SAT}
Expand All @@ -41,32 +44,32 @@ def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):

def _populate_public_holidays(self):
# New Year's Day.
self._add_new_years_day("New Year's Day")
self._add_new_years_day(tr("New Year's Day"))

# Labor Day.
self._add_labor_day("Labor Day")
self._add_labor_day(tr("Labor Day"))
Comment thread
KJhellico marked this conversation as resolved.
Outdated

# Africa Day.
self._add_africa_day("Africa Day")
self._add_africa_day(tr("Africa Day"))

# Independence Day.
if self._year >= 1960:
self._add_holiday_nov_28("Independence Day")
self._add_holiday_nov_28(tr("Independence Day"))

# Islamic holidays.
# Eid al-Fitr.
self._add_eid_al_fitr_day("Eid al-Fitr")
self._add_eid_al_fitr_day_two("Eid al-Fitr")
self._add_eid_al_fitr_day(tr("Eid al-Fitr"))
self._add_eid_al_fitr_day_two(tr("Eid al-Fitr"))

# Eid al-Adha.
self._add_eid_al_adha_day("Eid al-Adha")
self._add_eid_al_adha_day_two("Eid al-Adha")
self._add_eid_al_adha_day(tr("Eid al-Adha"))
self._add_eid_al_adha_day_two(tr("Eid al-Adha"))

# Muharram/Islamic New Year.
self._add_islamic_new_year_day("Islamic New Year")
self._add_islamic_new_year_day(tr("Islamic New Year"))

# Prophet Muhammad's Birthday.
self._add_mawlid_day("Mawlid al-Nabi")
self._add_mawlid_day(tr("Mawlid al-Nabi"))


class MR(Mauritania):
Expand Down
65 changes: 65 additions & 0 deletions holidays/locale/ar/LC_MESSAGES/MR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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)
#
# Mauritania holidays.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.79\n"
Comment thread
KJhellico marked this conversation as resolved.
Outdated
"Report-Msgid-Bugs-To: l10n@vacanza.dev\n"
"POT-Creation-Date: 2025-06-29 16:42+0530\n"
"PO-Revision-Date: 2025-06-29 16:42+0530\n"
"Last-Translator: Kriti Birda <workwithkritibirda@gmail.com>\n"
Comment thread
KJhellico marked this conversation as resolved.
Outdated
"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-Source-Language: ar\n"

#. %s (estimated).
#, c-format
msgid "%s (تقديري)"
msgstr ""

#. New Year's Day.
msgid "رأس السنة الميلادية"
msgstr ""

#. Labor Day.
msgid "عيد العمال"
msgstr ""

#. Africa Day.
msgid "يوم أفريقيا"
msgstr ""

#. Independence Day.
msgid "عيد الاستقلال"
msgstr ""

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

#. Eid al-Adha.
msgid "عيد الأضحى"
msgstr ""

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

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