mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 03:37:13 +08:00
38 lines
2.1 KiB
Ruby
Vendored
38 lines
2.1 KiB
Ruby
Vendored
# encoding: utf-8
|
|
module Holidays
|
|
# This file is generated by the Ruby Holidays gem.
|
|
#
|
|
# Definitions loaded: definitions/my.yaml
|
|
#
|
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
module MY # :nodoc:
|
|
def self.defined_regions
|
|
[:my]
|
|
end
|
|
|
|
def self.holidays_by_month
|
|
{
|
|
1 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:my]},
|
|
{:mday => 25, :year_ranges => { :limited => [2024] },:name => "Thaipusam", :regions => [:my]}],
|
|
2 => [{:mday => 12, :year_ranges => { :limited => [2024] },:name => "Chinese New Year", :regions => [:my]}],
|
|
4 => [{:mday => 10, :year_ranges => { :limited => [2024] },:name => "Hari Raya Aidilfitri", :regions => [:my]},
|
|
{:mday => 11, :year_ranges => { :limited => [2024] },:name => "Hari Raya Aidilfitri (Day 2)", :regions => [:my]}],
|
|
5 => [{:mday => 1, :name => "Labour Day", :regions => [:my]},
|
|
{:mday => 22, :year_ranges => { :limited => [2024] },:name => "Wesak Day", :regions => [:my]}],
|
|
6 => [{:mday => 3, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Agong's Birthday", :regions => [:my]},
|
|
{:mday => 17, :year_ranges => { :limited => [2024] },:name => "Hari Raya Haji", :regions => [:my]}],
|
|
7 => [{:mday => 8, :year_ranges => { :limited => [2024] },:name => "Awal Muharram", :regions => [:my]}],
|
|
9 => [{:mday => 16, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Malaysia Day", :regions => [:my]},
|
|
{:mday => 17, :year_ranges => { :limited => [2024] },:name => "Malaysia Day (Day 2)", :regions => [:my]}],
|
|
10 => [{:mday => 31, :year_ranges => { :limited => [2024] },:name => "Deepavali", :regions => [:my]}],
|
|
12 => [{:mday => 25, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:my]}]
|
|
}
|
|
end
|
|
|
|
def self.custom_methods
|
|
{
|
|
|
|
}
|
|
end
|
|
end
|
|
end
|