holidays 0.58__py3-none-any.whl → 0.59__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holidays/__init__.py +1 -1
- holidays/calendars/buddhist.py +4 -4
- holidays/calendars/chinese.py +8 -8
- holidays/calendars/hindu.py +4 -4
- holidays/calendars/islamic.py +25 -25
- holidays/countries/angola.py +2 -2
- holidays/countries/armenia.py +5 -2
- holidays/countries/azerbaijan.py +7 -2
- holidays/countries/belarus.py +1 -1
- holidays/countries/bosnia_and_herzegovina.py +2 -2
- holidays/countries/bulgaria.py +1 -2
- holidays/countries/chile.py +1 -2
- holidays/countries/czechia.py +6 -3
- holidays/countries/egypt.py +0 -1
- holidays/countries/france.py +1 -1
- holidays/countries/georgia.py +1 -1
- holidays/countries/germany.py +10 -0
- holidays/countries/hongkong.py +1 -2
- holidays/countries/japan.py +3 -4
- holidays/countries/jersey.py +2 -2
- holidays/countries/jordan.py +1 -1
- holidays/countries/kazakhstan.py +1 -1
- holidays/countries/kuwait.py +1 -1
- holidays/countries/kyrgyzstan.py +1 -1
- holidays/countries/malaysia.py +7 -1
- holidays/countries/mauritania.py +0 -1
- holidays/countries/moldova.py +4 -3
- holidays/countries/russia.py +1 -1
- holidays/countries/saudi_arabia.py +1 -2
- holidays/countries/slovakia.py +1 -1
- holidays/countries/south_korea.py +1 -2
- holidays/countries/taiwan.py +1 -2
- holidays/countries/ukraine.py +1 -3
- holidays/countries/united_arab_emirates.py +5 -2
- holidays/countries/united_kingdom.py +2 -2
- holidays/countries/united_states.py +2 -2
- holidays/countries/uzbekistan.py +2 -1
- holidays/countries/vietnam.py +116 -25
- holidays/groups/__init__.py +1 -0
- holidays/groups/buddhist.py +6 -11
- holidays/groups/chinese.py +7 -25
- holidays/groups/eastern.py +51 -0
- holidays/groups/hindu.py +6 -11
- holidays/groups/international.py +8 -5
- holidays/groups/islamic.py +39 -46
- holidays/holiday_base.py +31 -30
- holidays/locale/de/LC_MESSAGES/DE.mo +0 -0
- holidays/locale/de/LC_MESSAGES/DE.po +11 -4
- holidays/locale/en_US/LC_MESSAGES/DE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/DE.po +13 -4
- holidays/locale/en_US/LC_MESSAGES/VN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/VN.po +37 -19
- holidays/locale/th/LC_MESSAGES/DE.mo +0 -0
- holidays/locale/th/LC_MESSAGES/DE.po +11 -2
- holidays/locale/th/LC_MESSAGES/VN.mo +0 -0
- holidays/locale/th/LC_MESSAGES/VN.po +93 -0
- holidays/locale/uk/LC_MESSAGES/DE.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/DE.po +13 -4
- holidays/locale/vi/LC_MESSAGES/VN.mo +0 -0
- holidays/locale/vi/LC_MESSAGES/VN.po +32 -14
- holidays/mixins.py +1 -4
- holidays/observed_holiday_base.py +5 -5
- holidays/registry.py +4 -3
- holidays/utils.py +8 -7
- {holidays-0.58.dist-info → holidays-0.59.dist-info}/METADATA +22 -38
- {holidays-0.58.dist-info → holidays-0.59.dist-info}/RECORD +70 -67
- {holidays-0.58.dist-info → holidays-0.59.dist-info}/WHEEL +1 -1
- {holidays-0.58.dist-info → holidays-0.59.dist-info}/AUTHORS +0 -0
- {holidays-0.58.dist-info → holidays-0.59.dist-info}/LICENSE +0 -0
- {holidays-0.58.dist-info → holidays-0.59.dist-info}/top_level.txt +0 -0
|
@@ -14,62 +14,80 @@
|
|
|
14
14
|
#
|
|
15
15
|
msgid ""
|
|
16
16
|
msgstr ""
|
|
17
|
-
"Project-Id-Version: Holidays 0.
|
|
17
|
+
"Project-Id-Version: Holidays 0.59\n"
|
|
18
18
|
"POT-Creation-Date: 2024-09-27 15:50+0700\n"
|
|
19
|
-
"PO-Revision-Date: 2024-09
|
|
20
|
-
"Last-Translator:
|
|
19
|
+
"PO-Revision-Date: 2024-10-09 20:57+0300\n"
|
|
20
|
+
"Last-Translator: ~Jhellico <jhellico@gmail.com>\n"
|
|
21
21
|
"Language-Team: Holidays Localization Team\n"
|
|
22
|
-
"Language:
|
|
22
|
+
"Language: en_US\n"
|
|
23
23
|
"MIME-Version: 1.0\n"
|
|
24
24
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
25
25
|
"Content-Transfer-Encoding: 8bit\n"
|
|
26
26
|
"Generated-By: Lingva 5.0.4\n"
|
|
27
|
+
"X-Generator: Poedit 3.5\n"
|
|
27
28
|
|
|
28
29
|
#. %s (observed).
|
|
29
30
|
#, c-format
|
|
30
31
|
msgid "%s (nghỉ bù)"
|
|
31
32
|
msgstr "%s (observed)"
|
|
32
33
|
|
|
33
|
-
#. New Year's Day
|
|
34
|
+
#. New Year's Day.
|
|
34
35
|
msgid "Tết Dương lịch"
|
|
35
36
|
msgstr "New Year's Day"
|
|
36
37
|
|
|
37
|
-
#. Lunar New Year
|
|
38
|
+
#. 29 of Lunar New Year.
|
|
39
|
+
msgid "29 Tết"
|
|
40
|
+
msgstr "29 of Lunar New Year"
|
|
41
|
+
|
|
42
|
+
#. Lunar New Year's Eve.
|
|
38
43
|
msgid "Giao thừa Tết Nguyên Đán"
|
|
39
44
|
msgstr "Lunar New Year's Eve"
|
|
40
45
|
|
|
41
|
-
#. Lunar New Year
|
|
46
|
+
#. Lunar New Year.
|
|
42
47
|
msgid "Tết Nguyên Đán"
|
|
43
48
|
msgstr "Lunar New Year"
|
|
44
49
|
|
|
45
|
-
#. Second Day of Lunar New Year
|
|
50
|
+
#. Second Day of Lunar New Year.
|
|
46
51
|
msgid "Mùng hai Tết Nguyên Đán"
|
|
47
|
-
msgstr "
|
|
52
|
+
msgstr "Second Day of Lunar New Year"
|
|
48
53
|
|
|
49
|
-
#. Third Day of Lunar New Year
|
|
54
|
+
#. Third Day of Lunar New Year.
|
|
50
55
|
msgid "Mùng ba Tết Nguyên Đán"
|
|
51
|
-
msgstr "
|
|
56
|
+
msgstr "Third Day of Lunar New Year"
|
|
52
57
|
|
|
53
|
-
#. Fourth Day of Lunar New Year
|
|
58
|
+
#. Fourth Day of Lunar New Year.
|
|
54
59
|
msgid "Mùng bốn Tết Nguyên Đán"
|
|
55
|
-
msgstr "
|
|
60
|
+
msgstr "Fourth Day of Lunar New Year"
|
|
56
61
|
|
|
57
|
-
#. Fifth Day of Lunar New Year
|
|
62
|
+
#. Fifth Day of Lunar New Year.
|
|
58
63
|
msgid "Mùng năm Tết Nguyên Đán"
|
|
59
|
-
msgstr "
|
|
64
|
+
msgstr "Fifth Day of Lunar New Year"
|
|
65
|
+
|
|
66
|
+
#. Sixth Day of Lunar New Year.
|
|
67
|
+
msgid "Mùng sáu Tết Nguyên Đán"
|
|
68
|
+
msgstr "Sixth Day of Lunar New Year"
|
|
60
69
|
|
|
61
|
-
#. Hung Kings' Commemoration Day
|
|
70
|
+
#. Hung Kings' Commemoration Day.
|
|
62
71
|
msgid "Ngày Giỗ Tổ Hùng Vương"
|
|
63
72
|
msgstr "Hung Kings' Commemoration Day"
|
|
64
73
|
|
|
65
|
-
#. Liberation Day/Reunification Day
|
|
74
|
+
#. Liberation Day/Reunification Day.
|
|
66
75
|
msgid "Ngày Chiến thắng"
|
|
67
76
|
msgstr "Liberation Day/Reunification Day"
|
|
68
77
|
|
|
69
|
-
#. International Labor Day
|
|
78
|
+
#. International Labor Day.
|
|
70
79
|
msgid "Ngày Quốc tế Lao động"
|
|
71
80
|
msgstr "International Labor Day"
|
|
72
81
|
|
|
73
|
-
#. National Day
|
|
82
|
+
#. National Day.
|
|
74
83
|
msgid "Quốc khánh"
|
|
75
84
|
msgstr "National Day"
|
|
85
|
+
|
|
86
|
+
#. Date format (see strftime() Format Codes).
|
|
87
|
+
msgid "%d/%m/%Y"
|
|
88
|
+
msgstr "%m/%d/%Y"
|
|
89
|
+
|
|
90
|
+
#. Day off (substituted from %s).
|
|
91
|
+
#, c-format
|
|
92
|
+
msgid "Ngày nghỉ (thay cho ngày %s)"
|
|
93
|
+
msgstr "Day off (substituted from %s)"
|
|
Binary file
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
#
|
|
15
15
|
msgid ""
|
|
16
16
|
msgstr ""
|
|
17
|
-
"Project-Id-Version: Holidays 0.
|
|
17
|
+
"Project-Id-Version: Holidays 0.59\n"
|
|
18
18
|
"POT-Creation-Date: 2024-09-05 23:21+0700\n"
|
|
19
|
-
"PO-Revision-Date: 2024-
|
|
19
|
+
"PO-Revision-Date: 2024-10-17 11:44+0700\n"
|
|
20
20
|
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
|
|
21
21
|
"Language-Team: Holidays Localization Team\n"
|
|
22
22
|
"Language: th\n"
|
|
@@ -92,6 +92,15 @@ msgstr ""
|
|
|
92
92
|
"วันครบรอบ 75 "
|
|
93
93
|
"ปีของการปลดปล่อยจากระบอบชาติสังคมนิยมและการสิ้นสุดสงครามโลกครั้งที่สองในยุโรป"
|
|
94
94
|
|
|
95
|
+
#. 80th anniversary of the liberation from Nazism and the end of the Second
|
|
96
|
+
#. World War in Europe.
|
|
97
|
+
msgid ""
|
|
98
|
+
"80. Jahrestag der Befreiung vom Nationalsozialismus und der Beendigung des "
|
|
99
|
+
"Zweiten Weltkriegs in Europa"
|
|
100
|
+
msgstr ""
|
|
101
|
+
"วันครบรอบ 80 "
|
|
102
|
+
"ปีของการปลดปล่อยจากระบอบชาติสังคมนิยมและการสิ้นสุดสงครามโลกครั้งที่สองในยุโรป"
|
|
103
|
+
|
|
95
104
|
#. Epiphany.
|
|
96
105
|
msgid "Heilige Drei Könige"
|
|
97
106
|
msgstr "วันสมโภชพระคริสต์แสดงองค์"
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# holidays
|
|
2
|
+
# --------
|
|
3
|
+
# A fast, efficient Python library for generating country, province and state
|
|
4
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
6
|
+
#
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
8
|
+
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
|
+
# Website: https://github.com/vacanza/holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
#
|
|
13
|
+
# Vietnam holidays th localization.
|
|
14
|
+
#
|
|
15
|
+
msgid ""
|
|
16
|
+
msgstr ""
|
|
17
|
+
"Project-Id-Version: Holidays 0.59\n"
|
|
18
|
+
"POT-Creation-Date: 2024-09-27 15:50+0700\n"
|
|
19
|
+
"PO-Revision-Date: 2024-10-09 20:58+0300\n"
|
|
20
|
+
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
|
|
21
|
+
"Language-Team: Holidays Localization Team\n"
|
|
22
|
+
"Language: th\n"
|
|
23
|
+
"MIME-Version: 1.0\n"
|
|
24
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
25
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
26
|
+
"Generated-By: Lingva 5.0.4\n"
|
|
27
|
+
"X-Generator: Poedit 3.5\n"
|
|
28
|
+
|
|
29
|
+
#. %s (observed).
|
|
30
|
+
#, c-format
|
|
31
|
+
msgid "%s (nghỉ bù)"
|
|
32
|
+
msgstr "ชดเชย%s"
|
|
33
|
+
|
|
34
|
+
#. New Year's Day.
|
|
35
|
+
msgid "Tết Dương lịch"
|
|
36
|
+
msgstr "วันปีใหม่สากล"
|
|
37
|
+
|
|
38
|
+
#. 29 of Lunar New Year.
|
|
39
|
+
msgid "29 Tết"
|
|
40
|
+
msgstr "วันที่ 29 เดือน 12 ตามปฏิทินจันทรคติ"
|
|
41
|
+
|
|
42
|
+
#. Lunar New Year's Eve.
|
|
43
|
+
msgid "Giao thừa Tết Nguyên Đán"
|
|
44
|
+
msgstr "วันก่อนวันตรุษเต๊ต"
|
|
45
|
+
|
|
46
|
+
#. Lunar New Year.
|
|
47
|
+
msgid "Tết Nguyên Đán"
|
|
48
|
+
msgstr "วันตรุษเต๊ต"
|
|
49
|
+
|
|
50
|
+
#. Second Day of Lunar New Year.
|
|
51
|
+
msgid "Mùng hai Tết Nguyên Đán"
|
|
52
|
+
msgstr "วันตรุษเต๊ตวันที่สอง"
|
|
53
|
+
|
|
54
|
+
#. Third Day of Lunar New Year.
|
|
55
|
+
msgid "Mùng ba Tết Nguyên Đán"
|
|
56
|
+
msgstr "วันตรุษเต๊ตวันที่สาม"
|
|
57
|
+
|
|
58
|
+
#. Fourth Day of Lunar New Year.
|
|
59
|
+
msgid "Mùng bốn Tết Nguyên Đán"
|
|
60
|
+
msgstr "วันตรุษเต๊ตวันที่สี่"
|
|
61
|
+
|
|
62
|
+
#. Fifth Day of Lunar New Year.
|
|
63
|
+
msgid "Mùng năm Tết Nguyên Đán"
|
|
64
|
+
msgstr "วันตรุษเต๊ตวันที่ห้า"
|
|
65
|
+
|
|
66
|
+
#. Sixth Day of Lunar New Year.
|
|
67
|
+
msgid "Mùng sáu Tết Nguyên Đán"
|
|
68
|
+
msgstr "วันตรุษเต๊ตวันที่หก"
|
|
69
|
+
|
|
70
|
+
#. Hung Kings' Commemoration Day.
|
|
71
|
+
msgid "Ngày Giỗ Tổ Hùng Vương"
|
|
72
|
+
msgstr "วันสักการะบูชาบรรพกษัตริย์หุ่ง"
|
|
73
|
+
|
|
74
|
+
#. Liberation Day/Reunification Day.
|
|
75
|
+
msgid "Ngày Chiến thắng"
|
|
76
|
+
msgstr "วันปลดปล่อยภาคใต้เพื่อรวมชาติ"
|
|
77
|
+
|
|
78
|
+
#. International Labor Day.
|
|
79
|
+
msgid "Ngày Quốc tế Lao động"
|
|
80
|
+
msgstr "วันแรงงานสากล"
|
|
81
|
+
|
|
82
|
+
#. National Day.
|
|
83
|
+
msgid "Quốc khánh"
|
|
84
|
+
msgstr "วันชาติเวียตนาม"
|
|
85
|
+
|
|
86
|
+
#. Date format (see strftime() Format Codes).
|
|
87
|
+
msgid "%d/%m/%Y"
|
|
88
|
+
msgstr "%d/%m/%Y"
|
|
89
|
+
|
|
90
|
+
#. Day off (substituted from %s).
|
|
91
|
+
#, c-format
|
|
92
|
+
msgid "Ngày nghỉ (thay cho ngày %s)"
|
|
93
|
+
msgstr "วันหยุด (แทน %s)"
|
|
Binary file
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
#
|
|
15
15
|
msgid ""
|
|
16
16
|
msgstr ""
|
|
17
|
-
"Project-Id-Version: Holidays 0.
|
|
17
|
+
"Project-Id-Version: Holidays 0.59\n"
|
|
18
18
|
"POT-Creation-Date: 2023-04-04 16:13+0300\n"
|
|
19
|
-
"PO-Revision-Date:
|
|
20
|
-
"Last-Translator:
|
|
19
|
+
"PO-Revision-Date: 2024-10-17 11:44+0700\n"
|
|
20
|
+
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
|
|
21
21
|
"Language-Team: Holidays localization team\n"
|
|
22
22
|
"Language: uk\n"
|
|
23
23
|
"MIME-Version: 1.0\n"
|
|
@@ -25,7 +25,7 @@ msgstr ""
|
|
|
25
25
|
"Content-Transfer-Encoding: 8bit\n"
|
|
26
26
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
|
27
27
|
"Generated-By: pygettext.py 1.5\n"
|
|
28
|
-
"X-Generator: Poedit 3.
|
|
28
|
+
"X-Generator: Poedit 3.5\n"
|
|
29
29
|
|
|
30
30
|
#. New Year's Day.
|
|
31
31
|
msgid "Neujahr"
|
|
@@ -92,6 +92,15 @@ msgstr ""
|
|
|
92
92
|
"75-та річниця визволення від націонал-соціалізму та завершення Другої "
|
|
93
93
|
"світової війни в Європі"
|
|
94
94
|
|
|
95
|
+
#. 80th anniversary of the liberation from Nazism and the end of the Second
|
|
96
|
+
#. World War in Europe.
|
|
97
|
+
msgid ""
|
|
98
|
+
"80. Jahrestag der Befreiung vom Nationalsozialismus und der Beendigung des "
|
|
99
|
+
"Zweiten Weltkriegs in Europa"
|
|
100
|
+
msgstr ""
|
|
101
|
+
"80-та річниця визволення від націонал-соціалізму та завершення Другої "
|
|
102
|
+
"світової війни в Європі"
|
|
103
|
+
|
|
95
104
|
#. Epiphany.
|
|
96
105
|
msgid "Heilige Drei Könige"
|
|
97
106
|
msgstr "Богоявлення"
|
|
Binary file
|
|
@@ -14,62 +14,80 @@
|
|
|
14
14
|
#
|
|
15
15
|
msgid ""
|
|
16
16
|
msgstr ""
|
|
17
|
-
"Project-Id-Version: Holidays 0.
|
|
17
|
+
"Project-Id-Version: Holidays 0.59\n"
|
|
18
18
|
"POT-Creation-Date: 2024-09-27 15:50+0700\n"
|
|
19
|
-
"PO-Revision-Date: 2024-09
|
|
20
|
-
"Last-Translator:
|
|
19
|
+
"PO-Revision-Date: 2024-10-09 20:58+0300\n"
|
|
20
|
+
"Last-Translator: ~Jhellico <jhellico@gmail.com>\n"
|
|
21
21
|
"Language-Team: Holidays Localization Team\n"
|
|
22
22
|
"Language: vi\n"
|
|
23
23
|
"MIME-Version: 1.0\n"
|
|
24
24
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
25
25
|
"Content-Transfer-Encoding: 8bit\n"
|
|
26
26
|
"Generated-By: Lingva 5.0.4\n"
|
|
27
|
+
"X-Generator: Poedit 3.5\n"
|
|
27
28
|
|
|
28
29
|
#. %s (observed).
|
|
29
30
|
#, c-format
|
|
30
31
|
msgid "%s (nghỉ bù)"
|
|
31
32
|
msgstr ""
|
|
32
33
|
|
|
33
|
-
#. New Year's Day
|
|
34
|
+
#. New Year's Day.
|
|
34
35
|
msgid "Tết Dương lịch"
|
|
35
36
|
msgstr ""
|
|
36
37
|
|
|
37
|
-
#. Lunar New Year
|
|
38
|
+
#. 29 of Lunar New Year.
|
|
39
|
+
msgid "29 Tết"
|
|
40
|
+
msgstr ""
|
|
41
|
+
|
|
42
|
+
#. Lunar New Year's Eve.
|
|
38
43
|
msgid "Giao thừa Tết Nguyên Đán"
|
|
39
44
|
msgstr ""
|
|
40
45
|
|
|
41
|
-
#. Lunar New Year
|
|
46
|
+
#. Lunar New Year.
|
|
42
47
|
msgid "Tết Nguyên Đán"
|
|
43
48
|
msgstr ""
|
|
44
49
|
|
|
45
|
-
#. Second Day of Lunar New Year
|
|
50
|
+
#. Second Day of Lunar New Year.
|
|
46
51
|
msgid "Mùng hai Tết Nguyên Đán"
|
|
47
52
|
msgstr ""
|
|
48
53
|
|
|
49
|
-
#. Third Day of Lunar New Year
|
|
54
|
+
#. Third Day of Lunar New Year.
|
|
50
55
|
msgid "Mùng ba Tết Nguyên Đán"
|
|
51
56
|
msgstr ""
|
|
52
57
|
|
|
53
|
-
#. Fourth Day of Lunar New Year
|
|
58
|
+
#. Fourth Day of Lunar New Year.
|
|
54
59
|
msgid "Mùng bốn Tết Nguyên Đán"
|
|
55
60
|
msgstr ""
|
|
56
61
|
|
|
57
|
-
#. Fifth Day of Lunar New Year
|
|
62
|
+
#. Fifth Day of Lunar New Year.
|
|
58
63
|
msgid "Mùng năm Tết Nguyên Đán"
|
|
59
64
|
msgstr ""
|
|
60
65
|
|
|
61
|
-
#.
|
|
66
|
+
#. Sixth Day of Lunar New Year.
|
|
67
|
+
msgid "Mùng sáu Tết Nguyên Đán"
|
|
68
|
+
msgstr ""
|
|
69
|
+
|
|
70
|
+
#. Hung Kings' Commemoration Day.
|
|
62
71
|
msgid "Ngày Giỗ Tổ Hùng Vương"
|
|
63
72
|
msgstr ""
|
|
64
73
|
|
|
65
|
-
#. Liberation Day/Reunification Day
|
|
74
|
+
#. Liberation Day/Reunification Day.
|
|
66
75
|
msgid "Ngày Chiến thắng"
|
|
67
76
|
msgstr ""
|
|
68
77
|
|
|
69
|
-
#. International Labor Day
|
|
78
|
+
#. International Labor Day.
|
|
70
79
|
msgid "Ngày Quốc tế Lao động"
|
|
71
80
|
msgstr ""
|
|
72
81
|
|
|
73
|
-
#. National Day
|
|
82
|
+
#. National Day.
|
|
74
83
|
msgid "Quốc khánh"
|
|
75
84
|
msgstr ""
|
|
85
|
+
|
|
86
|
+
#. Date format (see strftime() Format Codes).
|
|
87
|
+
msgid "%d/%m/%Y"
|
|
88
|
+
msgstr ""
|
|
89
|
+
|
|
90
|
+
#. Day off (substituted from %s).
|
|
91
|
+
#, c-format
|
|
92
|
+
msgid "Ngày nghỉ (thay cho ngày %s)"
|
|
93
|
+
msgstr ""
|
holidays/mixins.py
CHANGED
|
@@ -11,16 +11,13 @@
|
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
from typing import Tuple
|
|
15
|
-
|
|
16
|
-
|
|
17
14
|
class PreferredDiscretionaryHolidays:
|
|
18
15
|
"""A mixin for setting preferred discretionary holidays.
|
|
19
16
|
|
|
20
17
|
See :class:`holidays.countries.hongkong.HongKong` for an example.
|
|
21
18
|
"""
|
|
22
19
|
|
|
23
|
-
default_preferred_discretionary_holidays:
|
|
20
|
+
default_preferred_discretionary_holidays: tuple[str, ...] = ()
|
|
24
21
|
"""Preferred discretionary holidays defaults."""
|
|
25
22
|
|
|
26
23
|
def __init__(self, preferred_discretionary_holidays):
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
13
|
from datetime import date
|
|
14
|
-
from typing import
|
|
14
|
+
from typing import Optional
|
|
15
15
|
|
|
16
16
|
from holidays.calendars.gregorian import MON, TUE, WED, THU, FRI, SAT, SUN, _timedelta
|
|
17
17
|
from holidays.holiday_base import DateArg, HolidayBase
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class ObservedRule(
|
|
20
|
+
class ObservedRule(dict[int, Optional[int]]):
|
|
21
21
|
__slots__ = ()
|
|
22
22
|
|
|
23
23
|
def __add__(self, other):
|
|
@@ -141,7 +141,7 @@ class ObservedHolidayBase(HolidayBase):
|
|
|
141
141
|
name: Optional[str] = None,
|
|
142
142
|
rule: Optional[ObservedRule] = None,
|
|
143
143
|
show_observed_label: bool = True,
|
|
144
|
-
) ->
|
|
144
|
+
) -> tuple[bool, Optional[date]]:
|
|
145
145
|
dt = dt if isinstance(dt, date) else date(self._year, *dt)
|
|
146
146
|
|
|
147
147
|
if not self.observed or not self._is_observed(dt):
|
|
@@ -186,7 +186,7 @@ class ObservedHolidayBase(HolidayBase):
|
|
|
186
186
|
|
|
187
187
|
def _move_holiday(
|
|
188
188
|
self, dt: date, rule: Optional[ObservedRule] = None, show_observed_label: bool = True
|
|
189
|
-
) ->
|
|
189
|
+
) -> tuple[bool, Optional[date]]:
|
|
190
190
|
is_observed, dt_observed = self._add_observed(
|
|
191
191
|
dt, rule=rule, show_observed_label=show_observed_label
|
|
192
192
|
)
|
|
@@ -194,7 +194,7 @@ class ObservedHolidayBase(HolidayBase):
|
|
|
194
194
|
self.pop(dt)
|
|
195
195
|
return is_observed, dt_observed if is_observed else dt
|
|
196
196
|
|
|
197
|
-
def _populate_observed(self, dts:
|
|
197
|
+
def _populate_observed(self, dts: set[date], multiple: bool = False) -> None:
|
|
198
198
|
"""
|
|
199
199
|
When multiple is True, each holiday from a given date has its own observed date.
|
|
200
200
|
"""
|
holidays/registry.py
CHANGED
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
13
|
import importlib
|
|
14
|
+
from collections.abc import Iterable
|
|
14
15
|
from threading import RLock
|
|
15
|
-
from typing import Any,
|
|
16
|
+
from typing import Any, Optional, Union
|
|
16
17
|
|
|
17
18
|
from holidays.holiday_base import HolidayBase
|
|
18
19
|
|
|
19
|
-
RegistryDict =
|
|
20
|
+
RegistryDict = dict[str, tuple[str, ...]]
|
|
20
21
|
|
|
21
22
|
COUNTRIES: RegistryDict = {
|
|
22
23
|
"albania": ("Albania", "AL", "ALB"),
|
|
@@ -277,7 +278,7 @@ class EntityLoader:
|
|
|
277
278
|
return EntityLoader._get_entity_codes(FINANCIAL, (3, 4), include_aliases)
|
|
278
279
|
|
|
279
280
|
@staticmethod
|
|
280
|
-
def load(prefix: str, scope:
|
|
281
|
+
def load(prefix: str, scope: dict) -> None:
|
|
281
282
|
"""Load country or financial entities."""
|
|
282
283
|
entity_mapping = COUNTRIES if prefix == "countries" else FINANCIAL
|
|
283
284
|
for module, entities in entity_mapping.items():
|
holidays/utils.py
CHANGED
|
@@ -21,8 +21,9 @@ __all__ = (
|
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
import warnings
|
|
24
|
+
from collections.abc import Iterable
|
|
24
25
|
from functools import lru_cache
|
|
25
|
-
from typing import
|
|
26
|
+
from typing import Optional, Union
|
|
26
27
|
|
|
27
28
|
from holidays.holiday_base import CategoryArg, HolidayBase
|
|
28
29
|
from holidays.registry import EntityLoader
|
|
@@ -282,7 +283,7 @@ def CountryHoliday( # noqa: N802
|
|
|
282
283
|
return country_holidays(country, subdiv, years, expand, observed, prov, state)
|
|
283
284
|
|
|
284
285
|
|
|
285
|
-
def _list_localized_entities(entity_codes: Iterable[str]) ->
|
|
286
|
+
def _list_localized_entities(entity_codes: Iterable[str]) -> dict[str, list[str]]:
|
|
286
287
|
"""
|
|
287
288
|
Get all localized entities and languages they support.
|
|
288
289
|
|
|
@@ -307,7 +308,7 @@ def _list_localized_entities(entity_codes: Iterable[str]) -> Dict[str, List[str]
|
|
|
307
308
|
|
|
308
309
|
|
|
309
310
|
@lru_cache
|
|
310
|
-
def list_localized_countries(include_aliases=True) ->
|
|
311
|
+
def list_localized_countries(include_aliases=True) -> dict[str, list[str]]:
|
|
311
312
|
"""
|
|
312
313
|
Get all localized countries and languages they support.
|
|
313
314
|
|
|
@@ -324,7 +325,7 @@ def list_localized_countries(include_aliases=True) -> Dict[str, List[str]]:
|
|
|
324
325
|
|
|
325
326
|
|
|
326
327
|
@lru_cache
|
|
327
|
-
def list_localized_financial(include_aliases=True) ->
|
|
328
|
+
def list_localized_financial(include_aliases=True) -> dict[str, list[str]]:
|
|
328
329
|
"""
|
|
329
330
|
Get all localized financial markets and languages they support.
|
|
330
331
|
|
|
@@ -339,7 +340,7 @@ def list_localized_financial(include_aliases=True) -> Dict[str, List[str]]:
|
|
|
339
340
|
return _list_localized_entities(EntityLoader.get_financial_codes(include_aliases))
|
|
340
341
|
|
|
341
342
|
|
|
342
|
-
def _list_supported_entities(entity_codes: Iterable[str]) ->
|
|
343
|
+
def _list_supported_entities(entity_codes: Iterable[str]) -> dict[str, list[str]]:
|
|
343
344
|
"""
|
|
344
345
|
Get all supported entities and their subdivisions.
|
|
345
346
|
|
|
@@ -359,7 +360,7 @@ def _list_supported_entities(entity_codes: Iterable[str]) -> Dict[str, List[str]
|
|
|
359
360
|
|
|
360
361
|
|
|
361
362
|
@lru_cache
|
|
362
|
-
def list_supported_countries(include_aliases=True) ->
|
|
363
|
+
def list_supported_countries(include_aliases=True) -> dict[str, list[str]]:
|
|
363
364
|
"""
|
|
364
365
|
Get all supported countries and their subdivisions.
|
|
365
366
|
|
|
@@ -374,7 +375,7 @@ def list_supported_countries(include_aliases=True) -> Dict[str, List[str]]:
|
|
|
374
375
|
|
|
375
376
|
|
|
376
377
|
@lru_cache
|
|
377
|
-
def list_supported_financial(include_aliases=True) ->
|
|
378
|
+
def list_supported_financial(include_aliases=True) -> dict[str, list[str]]:
|
|
378
379
|
"""
|
|
379
380
|
Get all supported financial markets and their subdivisions.
|
|
380
381
|
|
|
@@ -1,51 +1,35 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: holidays
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary:
|
|
5
|
-
Author
|
|
6
|
-
Maintainer
|
|
7
|
-
License:
|
|
8
|
-
Copyright (c) dr-prodigy <dr.prodigy.github@gmail.com>, 2017-2023
|
|
9
|
-
Copyright (c) ryanss <ryanssdev@icloud.com>, 2014-2017
|
|
10
|
-
|
|
11
|
-
All rights reserved.
|
|
12
|
-
|
|
13
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
-
in the Software without restriction, including without limitation the rights
|
|
16
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
-
furnished to do so, subject to the following conditions:
|
|
19
|
-
|
|
20
|
-
The above copyright notice and this permission notice shall be included in
|
|
21
|
-
all copies or substantial portions of the Software.
|
|
22
|
-
|
|
23
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
29
|
-
THE SOFTWARE.
|
|
30
|
-
|
|
31
|
-
Project-URL: Repository, https://github.com/vacanza/holidays/
|
|
3
|
+
Version: 0.59
|
|
4
|
+
Summary: World Holidays Framework
|
|
5
|
+
Author: Vacanza Team
|
|
6
|
+
Maintainer: Arkadii Yakovets, Panpakorn Siripanich, Serhii Murza
|
|
7
|
+
License: MIT
|
|
32
8
|
Project-URL: Documentation, https://holidays.readthedocs.io/en/latest/
|
|
33
|
-
Project-URL:
|
|
34
|
-
Project-URL:
|
|
35
|
-
Keywords: holidays,calendar,l10n
|
|
9
|
+
Project-URL: Repository, https://github.com/vacanza/holidays/
|
|
10
|
+
Project-URL: Changelog, https://github.com/vacanza/holidays/releases/
|
|
11
|
+
Keywords: holidays,calendar,l10n,worldwide,vacation
|
|
36
12
|
Classifier: Development Status :: 4 - Beta
|
|
37
13
|
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Education
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
38
18
|
Classifier: License :: OSI Approved :: MIT License
|
|
39
19
|
Classifier: Operating System :: OS Independent
|
|
40
|
-
Classifier: Programming Language :: Python
|
|
41
|
-
Classifier: Programming Language :: Python :: 3
|
|
42
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
43
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
44
|
-
Classifier:
|
|
27
|
+
Classifier: Topic :: File Formats :: JSON
|
|
28
|
+
Classifier: Topic :: Office/Business :: Financial :: Accounting
|
|
29
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
45
30
|
Classifier: Topic :: Office/Business :: Scheduling
|
|
46
31
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
47
|
-
|
|
48
|
-
Requires-Python: >=3.8
|
|
32
|
+
Requires-Python: >=3.9
|
|
49
33
|
Description-Content-Type: text/x-rst
|
|
50
34
|
License-File: LICENSE
|
|
51
35
|
License-File: AUTHORS
|
|
@@ -991,7 +975,7 @@ All other default values are highlighted with bold:
|
|
|
991
975
|
* - Vietnam
|
|
992
976
|
- VN
|
|
993
977
|
-
|
|
994
|
-
- en_US, **vi**
|
|
978
|
+
- en_US, th, **vi**
|
|
995
979
|
-
|
|
996
980
|
* - Virgin Islands (U.S.)
|
|
997
981
|
- VI
|