mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 16:57:36 +08:00
The Singapore (`sg`) holiday definitions in the vendored `holidays` gem only included 2025 entries for lunar and Islamic calendar holidays, so dates like Hari Raya Haji (May 27) and Vesak Day (observed June 1) did not resolve for 2026. This commit refreshes the `sg` definitions with 2026 dates for Chinese New Year, Hari Raya Puasa, Good Friday, Vesak Day, Hari Raya Haji, and Deepavali based on the [Ministry of Manpower's published list](https://www.mom.gov.sg/employment-practices/public-holidays), and drops the 2025-only Polling Day entry. Vesak Day (May 31) and Deepavali (Nov 8) fall on a Sunday in 2026, so both carry `to_weekday_if_weekend` so the gem returns the in-lieu Monday.
76 lines
1.7 KiB
YAML
Vendored
76 lines
1.7 KiB
YAML
Vendored
# Singapore holiday definitions for the Holidays gem!
|
|
|
|
# Days not included in the definitions (yet):
|
|
# Vesak Day (falls on the first full moon in May)
|
|
# Lunar New Year (falls on the first day of the Lunar Calendar)
|
|
# Hari Raya Puasa and Hari Raya Haji (based on moon sightings, Islamic Calendar)
|
|
# Deepavali (15th Day of September or October, based on the Hindu Calendar)
|
|
|
|
# Source:
|
|
# http://publicholidays.sg/
|
|
# https://www.mom.gov.sg/employment-practices/public-holidays
|
|
|
|
months:
|
|
1:
|
|
- name: New Year's Day
|
|
regions: [sg]
|
|
mday: 1
|
|
observed: to_weekday_if_weekend(date)
|
|
2:
|
|
- name: First day of Chinese New Year
|
|
regions: [sg]
|
|
mday: 17
|
|
observed: to_weekday_if_weekend(date)
|
|
year_ranges:
|
|
limited: [2026]
|
|
- name: Second day of Chinese New Year
|
|
regions: [sg]
|
|
mday: 18
|
|
observed: to_weekday_if_weekend(date)
|
|
year_ranges:
|
|
limited: [2026]
|
|
3:
|
|
- name: Hari Raya Puasa
|
|
regions: [sg]
|
|
mday: 21
|
|
year_ranges:
|
|
limited: [2026]
|
|
4:
|
|
- name: Good Friday
|
|
regions: [sg]
|
|
mday: 3
|
|
year_ranges:
|
|
limited: [2026]
|
|
5:
|
|
- name: Labour Day
|
|
regions: [sg]
|
|
mday: 1
|
|
observed: to_weekday_if_weekend(date)
|
|
- name: Hari Raya Haji
|
|
regions: [sg]
|
|
mday: 27
|
|
year_ranges:
|
|
limited: [2026]
|
|
- name: Vesak Day
|
|
regions: [sg]
|
|
mday: 31
|
|
observed: to_weekday_if_weekend(date)
|
|
year_ranges:
|
|
limited: [2026]
|
|
8:
|
|
- name: National Day
|
|
regions: [sg]
|
|
mday: 9
|
|
observed: to_weekday_if_weekend(date)
|
|
11:
|
|
- name: Deepavali
|
|
regions: [sg]
|
|
mday: 8
|
|
observed: to_weekday_if_weekend(date)
|
|
year_ranges:
|
|
limited: [2026]
|
|
12:
|
|
- name: Christmas Day
|
|
regions: [sg]
|
|
mday: 25
|
|
observed: to_weekday_if_weekend(date)
|