Skip to content

Commit

Permalink
Add West Frisian language (#2246)
Browse files Browse the repository at this point in the history
Signed-off-by: Arkadii Yakovets <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
Co-authored-by: ~Jhellico <[email protected]>
  • Loading branch information
3 people authored Jan 25, 2025
1 parent da6add7 commit 12f2602
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ All other default values are highlighted with bold:
* - Netherlands
- NL
-
- en_US, **nl**, uk
- en_US, fy, **nl**, uk
- OPTIONAL
* - New Zealand
- NZ
Expand Down
2 changes: 1 addition & 1 deletion holidays/countries/netherlands.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Netherlands(HolidayBase, ChristianHolidays, InternationalHolidays):
country = "NL"
default_language = "nl"
supported_categories = (OPTIONAL, PUBLIC)
supported_languages = ("en_US", "nl", "uk")
supported_languages = ("en_US", "fy", "nl", "uk")
start_year = 1801

def __init__(self, *args, **kwargs):
Expand Down
74 changes: 74 additions & 0 deletions holidays/locale/fy/LC_MESSAGES/NL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# 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 AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/holidays
# License: MIT (see LICENSE file)
#
# Netherlands holidays fy localization.
#
msgid ""
msgstr ""
"Project-Id-Version: Holidays 0.66\n"
"POT-Creation-Date: 2025-01-25 14:31+0100\n"
"PO-Revision-Date: 2025-01-25 14:31+0100\n"
"Last-Translator: Syb Wartna <[email protected]>\n"
"Language-Team: Holidays Localization Team\n"
"Language: fy\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingva 5.0.4\n"

#. New Year's Day.
msgid "Nieuwjaarsdag"
msgstr "Nijjiersdei"

#. Easter Sunday.
msgid "Eerste paasdag"
msgstr "Peaskesnein"

#. Easter Monday.
msgid "Tweede paasdag"
msgstr "Peaskemoandei"

#. King's Day.
msgid "Koningsdag"
msgstr "Keningsdei"

#. Queen's Day.
msgid "Koninginnedag"
msgstr "Keninginnedei"

#. Liberation Day.
msgid "Bevrijdingsdag"
msgstr "Befrijingsdei"

#. Ascension Day.
msgid "Hemelvaartsdag"
msgstr "Himelfeartsdei"

#. Whit Sunday.
msgid "Eerste Pinksterdag"
msgstr "Pinkstersnein"

#. Whit Monday.
msgid "Tweede Pinksterdag"
msgstr "Pinkstermoandei"

#. Christmas Day.
msgid "Eerste Kerstdag"
msgstr "Eerste Krystdei"

#. Second Day of Christmas.
msgid "Tweede Kerstdag"
msgstr "Twadde Krystdei"

#. Good Friday.
msgid "Goede Vrijdag"
msgstr "Goedfreed"
16 changes: 16 additions & 0 deletions tests/countries/test_netherlands.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,22 @@ def test_l10n_en_us(self):
("2022-12-26", "Second Day of Christmas"),
)

def test_l10n_fy(self):
self.assertLocalizedHolidays(
"fy",
("2022-01-01", "Nijjiersdei"),
("2022-04-15", "Goedfreed"),
("2022-04-17", "Peaskesnein"),
("2022-04-18", "Peaskemoandei"),
("2022-04-27", "Keningsdei"),
("2022-05-05", "Befrijingsdei"),
("2022-05-26", "Himelfeartsdei"),
("2022-06-05", "Pinkstersnein"),
("2022-06-06", "Pinkstermoandei"),
("2022-12-25", "Eerste Krystdei"),
("2022-12-26", "Twadde Krystdei"),
)

def test_l10n_uk(self):
self.assertLocalizedHolidays(
"uk",
Expand Down

0 comments on commit 12f2602

Please sign in to comment.