A platform for community discussion. Free, open, simple.
DEV: Add upcoming Saudi holidays (Eid Al Fitr) (#38424)
Osama Sayegh392bdea96963
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/lib/regions.js b/plugins/discourse-calendar/assets/javascripts/discourse/lib/regions.jsindex 7d35bf7727c..76d529224e2 100644--- a/plugins/discourse-calendar/assets/javascripts/discourse/lib/regions.js+++ b/plugins/discourse-calendar/assets/javascripts/discourse/lib/regions.js@@ -227,6 +227,7 @@ export const HOLIDAY_REGIONS = ["us_ut","us_ri","us_nv",+ "us_ny","us_nm","us_md","us_fl",diff --git a/plugins/discourse-calendar/vendor/holidays/Gemfile.lock b/plugins/discourse-calendar/vendor/holidays/Gemfile.lockindex 19095daa6a9..1130784001d 100644--- a/plugins/discourse-calendar/vendor/holidays/Gemfile.lock+++ b/plugins/discourse-calendar/vendor/holidays/Gemfile.lock@@ -27,6 +27,7 @@ GEMPLATFORMSarm64-darwin-21arm64-darwin-22+ arm64-darwin-24x86_64-darwin-24x86_64-linuxdiff --git a/plugins/discourse-calendar/vendor/holidays/definitions/sa.yaml b/plugins/discourse-calendar/vendor/holidays/definitions/sa.yamlindex 27cb97098cd..99b13b3a6e6 100644--- a/plugins/discourse-calendar/vendor/holidays/definitions/sa.yaml+++ b/plugins/discourse-calendar/vendor/holidays/definitions/sa.yaml@@ -7,6 +7,21 @@ months:regions: [sa]mday: 223:+ - name: Festival of Breaking the Fast+ regions: [sa]+ mday: 19+ year_ranges:+ limited: [2026]+ - name: Second Day of the Festival of Breaking the Fast+ regions: [sa]+ mday: 20+ year_ranges:+ limited: [2026]+ - name: Third Day of the Festival of Breaking the Fast+ regions: [sa]+ mday: 21+ year_ranges:+ limited: [2026]- name: Festival of Breaking the Fastregions: [sa]mday: 30@@ -38,21 +53,6 @@ months:mday: 11year_ranges:limited: [2024]- - name: Festival of Breaking the Fast- regions: [sa]- mday: 21- year_ranges:- limited: [2023]- - name: Second Day of the Festival of Breaking the Fast- regions: [sa]- mday: 22- year_ranges:- limited: [2023]- - name: Third Day of the Festival of Breaking the Fast- regions: [sa]- mday: 23- year_ranges:- limited: [2023]6:- name: Day of Arafahregions: [sa]diff --git a/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/REGIONS.rb b/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/REGIONS.rbindex 89ffc89fbc6..d641274975c 100644--- a/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/REGIONS.rb+++ b/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/REGIONS.rb@@ -2,5 +2,5 @@module HolidaysREGIONS = [:ae, :ar, :at, :au, :au_nsw, :au_vic, :au_qld, :au_nt, :au_act, :au_sa, :au_wa, :au_tas, :au_tas_south, :au_qld_cairns, :au_qld_brisbane, :au_tas_north, :au_vic_melbourne, :be_fr, :be_nl, :br, :br_spcapital, :br_sp, :bg_en, :bg_bg, :ca, :ca_qc, :ca_ab, :ca_sk, :ca_on, :ca_bc, :ca_nb, :ca_mb, :ca_ns, :ca_pe, :ca_nl, :ca_nt, :ca_nu, :ca_yt, :us, :ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju, :ch_vs, :ch, :cl, :co, :cr, :cz, :dk, :de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath, :de_sn, :de_st, :de_be, :de_by_cath, :de_by_augsburg, :de_th, :de_bb, :de_mv, :de_hb, :de_hh, :de_ni, :de_sh, :ecbtarget, :ee, :gr, :es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc, :federalreserve, :federalreservebanks, :fedex, :fi, :fr_a, :fr_m, :fr, :gb, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :je, :gb_jsy, :gg, :gb_gsy, :gb_sct, :gb_con, :im, :gb_iom, :ge, :gh, :hr, :hk, :hu, :id, :ie, :in, :in_mh, :in_gj, :in_ka, :in_tn, :is, :it, :it_ve, :it_tv, :it_vr, :it_pd, :it_fi, :it_ge, :it_to, :it_rm, :it_vi, :it_bl, :it_ro, :kr, :kz, :li, :lt, :lv, :ma, :mt_mt, :mt_en, :mx, :mx_pue, :nerc, :nl, :lu, :no, :nyse, :nz, :nz_sl, :nz_we, :nz_ak, :nz_nl, :nz_ne, :nz_ot, :nz_ta, :nz_sc, :nz_hb, :nz_mb, :nz_ca, :nz_ch, :nz_wl, :pe, :ph, :pl, :pt, :pt_li, :pt_po, :ro, :rs_cyrl, :rs_la, :ru, :se, :sa, :tn, :tr, :ua, :us_la, :us_ct, :us_de, :us_ga, :us_hi, :us_in, :us_ky, :us_nj, :us_nc, :us_nd, :us_pr, :us_tn, :us_il, :us_vt, :us_ak, :us_ca, :us_dc, :us_me, :us_ma, :us_al, :us_ms, :us_ne, :us_mo, :us_sc, :us_wv, :us_ut, :us_ri, :us_nv, :us_ny, :us_nm, :us_md, :us_fl, :us_ia, :us_ks, :us_mi, :us_mn, :us_nh, :us_ok, :us_or, :us_pa, :us_tx, :us_va, :us_wa, :us_ar, :us_wi, :unitednations, :ups, :za, :ve, :sk, :si, :jp, :vi, :sg, :my, :th, :ng, :ke, :zw]- PARENT_REGION_LOOKUP = {:ae=>:ae, :ar=>:ar, :at=>:at, :au=>:au, :au_nsw=>:au, :au_vic=>:au, :au_qld=>:au, :au_nt=>:au, :au_act=>:au, :au_sa=>:au, :au_wa=>:au, :au_tas=>:au, :au_tas_south=>:au, :au_qld_cairns=>:au, :au_qld_brisbane=>:au, :au_tas_north=>:au, :au_vic_melbourne=>:au, :be_fr=>:be_fr, :be_nl=>:be_nl, :br=>:br, :br_spcapital=>:br, :br_sp=>:br, :bg_en=>:bg, :bg_bg=>:bg, :ca=>:ca, :ca_qc=>:ca, :ca_ab=>:ca, :ca_sk=>:ca, :ca_on=>:ca, :ca_bc=>:ca, :ca_nb=>:ca, :ca_mb=>:ca, :ca_ns=>:ca, :ca_pe=>:ca, :ca_nl=>:ca, :ca_nt=>:ca, :ca_nu=>:ca, :ca_yt=>:ca, :us=>:us, :ch_zh=>:ch, :ch_be=>:ch, :ch_lu=>:ch, :ch_ur=>:ch, :ch_sz=>:ch, :ch_ow=>:ch, :ch_nw=>:ch, :ch_gl=>:ch, :ch_zg=>:ch, :ch_fr=>:ch, :ch_so=>:ch, :ch_bs=>:ch, :ch_bl=>:ch, :ch_sh=>:ch, :ch_ar=>:ch, :ch_ai=>:ch, :ch_sg=>:ch, :ch_gr=>:ch, :ch_ag=>:ch, :ch_tg=>:ch, :ch_ti=>:ch, :ch_vd=>:ch, :ch_ne=>:ch, :ch_ge=>:ch, :ch_ju=>:ch, :ch_vs=>:ch, :ch=>:ch, :cl=>:cl, :co=>:co, :cr=>:cr, :cz=>:cz, :dk=>:dk, :de=>:de, :de_bw=>:de, :de_by=>:de, :de_he=>:de, :de_nw=>:de, :de_rp=>:de, :de_sl=>:de, :de_sn_sorbian=>:de, :de_th_cath=>:de, :de_sn=>:de, :de_st=>:de, :de_be=>:de, :de_by_cath=>:de, :de_by_augsburg=>:de, :de_th=>:de, :de_bb=>:de, :de_mv=>:de, :de_hb=>:de, :de_hh=>:de, :de_ni=>:de, :de_sh=>:de, :ecbtarget=>:ecbtarget, :ee=>:ee, :gr=>:gr, :es_pv=>:es, :es_na=>:es, :es_an=>:es, :es_ib=>:es, :es_cm=>:es, :es_mu=>:es, :es_m=>:es, :es_ar=>:es, :es_cl=>:es, :es_cn=>:es, :es_lo=>:es, :es_ga=>:es, :es_ce=>:es, :es_o=>:es, :es_ex=>:es, :es=>:es, :es_ct=>:es, :es_v=>:es, :es_vc=>:es, :federalreserve=>:federalreserve, :federalreservebanks=>:federalreservebanks, :fedex=>:fedex, :fi=>:fi, :fr_a=>:fr, :fr_m=>:fr, :fr=>:fr, :gb=>:gb, :gb_eng=>:gb, :gb_wls=>:gb, :gb_eaw=>:gb, :gb_nir=>:gb, :je=>:gb, :gb_jsy=>:gb, :gg=>:gb, :gb_gsy=>:gb, :gb_sct=>:gb, :gb_con=>:gb, :im=>:gb, :gb_iom=>:gb, :ge=>:ge, :gh=>:gh, :hr=>:hr, :hk=>:hk, :hu=>:hu, :id=>:id, :ie=>:ie, :in=>:in, :in_mh=>:in, :in_gj=>:in, :in_ka=>:in, :in_tn=>:in, :is=>:is, :it=>:it, :it_ve=>:it, :it_tv=>:it, :it_vr=>:it, :it_pd=>:it, :it_fi=>:it, :it_ge=>:it, :it_to=>:it, :it_rm=>:it, :it_vi=>:it, :it_bl=>:it, :it_ro=>:it, :kr=>:kr, :kz=>:kz, :li=>:li, :lt=>:lt, :lv=>:lv, :ma=>:ma, :mt_mt=>:mt_mt, :mt_en=>:mt_en, :mx=>:mx, :mx_pue=>:mx, :nerc=>:nerc, :nl=>:nl, :lu=>:lu, :no=>:no, :nyse=>:nyse, :nz=>:nz, :nz_sl=>:nz, :nz_we=>:nz, :nz_ak=>:nz, :nz_nl=>:nz, :nz_ne=>:nz, :nz_ot=>:nz, :nz_ta=>:nz, :nz_sc=>:nz, :nz_hb=>:nz, :nz_mb=>:nz, :nz_ca=>:nz, :nz_ch=>:nz, :nz_wl=>:nz, :pe=>:pe, :ph=>:ph, :pl=>:pl, :pt=>:pt, :pt_li=>:pt, :pt_po=>:pt, :ro=>:ro, :rs_cyrl=>:rs_cyrl, :rs_la=>:rs_la, :ru=>:ru, :se=>:se, :sa=>:sa, :tn=>:tn, :tr=>:tr, :ua=>:ua, :us_la=>:us, :us_ct=>:us, :us_de=>:us, :us_ga=>:us, :us_hi=>:us, :us_in=>:us, :us_ky=>:us, :us_nj=>:us, :us_nc=>:us, :us_nd=>:us, :us_pr=>:us, :us_tn=>:us, :us_il=>:us, :us_vt=>:us, :us_ak=>:us, :us_ca=>:us, :us_dc=>:us, :us_me=>:us, :us_ma=>:us, :us_al=>:us, :us_ms=>:us, :us_ne=>:us, :us_mo=>:us, :us_sc=>:us, :us_wv=>:us, :us_ut=>:us, :us_ri=>:us, :us_nv=>:us, :us_ny=>:us, :us_nm=>:us, :us_md=>:us, :us_fl=>:us, :us_ia=>:us, :us_ks=>:us, :us_mi=>:us, :us_mn=>:us, :us_nh=>:us, :us_ok=>:us, :us_or=>:us, :us_pa=>:us, :us_tx=>:us, :us_va=>:us, :us_wa=>:us, :us_ar=>:us, :us_wi=>:us, :unitednations=>:unitednations, :ups=>:ups, :za=>:za, :ve=>:southamerica, :sk=>:europe, :si=>:europe, :jp=>:jp, :vi=>:vi, :sg=>:sg, :my=>:my, :th=>:th, :ng=>:ng, :ke=>:ke, :zw=>:zw}+ PARENT_REGION_LOOKUP = {ae: :ae, ar: :ar, at: :at, au: :au, au_nsw: :au, au_vic: :au, au_qld: :au, au_nt: :au, au_act: :au, au_sa: :au, au_wa: :au, au_tas: :au, au_tas_south: :au, au_qld_cairns: :au, au_qld_brisbane: :au, au_tas_north: :au, au_vic_melbourne: :au, be_fr: :be_fr, be_nl: :be_nl, br: :br, br_spcapital: :br, br_sp: :br, bg_en: :bg, bg_bg: :bg, ca: :ca, ca_qc: :ca, ca_ab: :ca, ca_sk: :ca, ca_on: :ca, ca_bc: :ca, ca_nb: :ca, ca_mb: :ca, ca_ns: :ca, ca_pe: :ca, ca_nl: :ca, ca_nt: :ca, ca_nu: :ca, ca_yt: :ca, us: :us, ch_zh: :ch, ch_be: :ch, ch_lu: :ch, ch_ur: :ch, ch_sz: :ch, ch_ow: :ch, ch_nw: :ch, ch_gl: :ch, ch_zg: :ch, ch_fr: :ch, ch_so: :ch, ch_bs: :ch, ch_bl: :ch, ch_sh: :ch, ch_ar: :ch, ch_ai: :ch, ch_sg: :ch, ch_gr: :ch, ch_ag: :ch, ch_tg: :ch, ch_ti: :ch, ch_vd: :ch, ch_ne: :ch, ch_ge: :ch, ch_ju: :ch, ch_vs: :ch, ch: :ch, cl: :cl, co: :co, cr: :cr, cz: :cz, dk: :dk, de: :de, de_bw: :de, de_by: :de, de_he: :de, de_nw: :de, de_rp: :de, de_sl: :de, de_sn_sorbian: :de, de_th_cath: :de, de_sn: :de, de_st: :de, de_be: :de, de_by_cath: :de, de_by_augsburg: :de, de_th: :de, de_bb: :de, de_mv: :de, de_hb: :de, de_hh: :de, de_ni: :de, de_sh: :de, ecbtarget: :ecbtarget, ee: :ee, gr: :gr, es_pv: :es, es_na: :es, es_an: :es, es_ib: :es, es_cm: :es, es_mu: :es, es_m: :es, es_ar: :es, es_cl: :es, es_cn: :es, es_lo: :es, es_ga: :es, es_ce: :es, es_o: :es, es_ex: :es, es: :es, es_ct: :es, es_v: :es, es_vc: :es, federalreserve: :federalreserve, federalreservebanks: :federalreservebanks, fedex: :fedex, fi: :fi, fr_a: :fr, fr_m: :fr, fr: :fr, gb: :gb, gb_eng: :gb, gb_wls: :gb, gb_eaw: :gb, gb_nir: :gb, je: :gb, gb_jsy: :gb, gg: :gb, gb_gsy: :gb, gb_sct: :gb, gb_con: :gb, im: :gb, gb_iom: :gb, ge: :ge, gh: :gh, hr: :hr, hk: :hk, hu: :hu, id: :id, ie: :ie, in: :in, in_mh: :in, in_gj: :in, in_ka: :in, in_tn: :in, is: :is, it: :it, it_ve: :it, it_tv: :it, it_vr: :it, it_pd: :it, it_fi: :it, it_ge: :it, it_to: :it, it_rm: :it, it_vi: :it, it_bl: :it, it_ro: :it, kr: :kr, kz: :kz, li: :li, lt: :lt, lv: :lv, ma: :ma, mt_mt: :mt_mt, mt_en: :mt_en, mx: :mx, mx_pue: :mx, nerc: :nerc, nl: :nl, lu: :lu, no: :no, nyse: :nyse, nz: :nz, nz_sl: :nz, nz_we: :nz, nz_ak: :nz, nz_nl: :nz, nz_ne: :nz, nz_ot: :nz, nz_ta: :nz, nz_sc: :nz, nz_hb: :nz, nz_mb: :nz, nz_ca: :nz, nz_ch: :nz, nz_wl: :nz, pe: :pe, ph: :ph, pl: :pl, pt: :pt, pt_li: :pt, pt_po: :pt, ro: :ro, rs_cyrl: :rs_cyrl, rs_la: :rs_la, ru: :ru, se: :se, sa: :sa, tn: :tn, tr: :tr, ua: :ua, us_la: :us, us_ct: :us, us_de: :us, us_ga: :us, us_hi: :us, us_in: :us, us_ky: :us, us_nj: :us, us_nc: :us, us_nd: :us, us_pr: :us, us_tn: :us, us_il: :us, us_vt: :us, us_ak: :us, us_ca: :us, us_dc: :us, us_me: :us, us_ma: :us, us_al: :us, us_ms: :us, us_ne: :us, us_mo: :us, us_sc: :us, us_wv: :us, us_ut: :us, us_ri: :us, us_nv: :us, us_ny: :us, us_nm: :us, us_md: :us, us_fl: :us, us_ia: :us, us_ks: :us, us_mi: :us, us_mn: :us, us_nh: :us, us_ok: :us, us_or: :us, us_pa: :us, us_tx: :us, us_va: :us, us_wa: :us, us_ar: :us, us_wi: :us, unitednations: :unitednations, ups: :ups, za: :za, ve: :southamerica, sk: :europe, si: :europe, jp: :jp, vi: :vi, sg: :sg, my: :my, th: :th, ng: :ng, ke: :ke, zw: :zw}enddiff --git a/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/sa.rb b/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/sa.rbindex 750ed07f2b6..c19d06211cd 100644--- a/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/sa.rb+++ b/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/sa.rb@@ -13,15 +13,15 @@ module Holidaysdef self.holidays_by_month{2 => [{:mday => 22, :name => "Foundation Day", :regions => [:sa]}],- 3 => [{:mday => 30, :year_ranges => { :limited => [2025] },:name => "Festival of Breaking the Fast", :regions => [:sa]},+ 3 => [{:mday => 19, :year_ranges => { :limited => [2026] },:name => "Festival of Breaking the Fast", :regions => [:sa]},+ {:mday => 20, :year_ranges => { :limited => [2026] },:name => "Second Day of the Festival of Breaking the Fast", :regions => [:sa]},+ {:mday => 21, :year_ranges => { :limited => [2026] },:name => "Third Day of the Festival of Breaking the Fast", :regions => [:sa]},+ {:mday => 30, :year_ranges => { :limited => [2025] },:name => "Festival of Breaking the Fast", :regions => [:sa]},{:mday => 31, :year_ranges => { :limited => [2025] },:name => "Second Day of the Festival of Breaking the Fast", :regions => [:sa]}],4 => [{:mday => 1, :year_ranges => { :limited => [2025] },:name => "Third Day of the Festival of Breaking the Fast", :regions => [:sa]},{:mday => 9, :year_ranges => { :limited => [2024] },:name => "Festival of Breaking the Fast", :regions => [:sa]},{:mday => 10, :year_ranges => { :limited => [2024] },:name => "Second Day of the Festival of Breaking the Fast", :regions => [:sa]},- {:mday => 11, :year_ranges => { :limited => [2024] },:name => "Third Day of the Festival of Breaking the Fast", :regions => [:sa]},- {:mday => 21, :year_ranges => { :limited => [2023] },:name => "Festival of Breaking the Fast", :regions => [:sa]},- {:mday => 22, :year_ranges => { :limited => [2023] },:name => "Second Day of the Festival of Breaking the Fast", :regions => [:sa]},- {:mday => 23, :year_ranges => { :limited => [2023] },:name => "Third Day of the Festival of Breaking the Fast", :regions => [:sa]}],+ {:mday => 11, :year_ranges => { :limited => [2024] },:name => "Third Day of the Festival of Breaking the Fast", :regions => [:sa]}],6 => [{:mday => 5, :year_ranges => { :limited => [2025] },:name => "Day of Arafah", :regions => [:sa]},{:mday => 6, :year_ranges => { :limited => [2025] },:name => "Day 1 of Eid Al Adha", :regions => [:sa]},{:mday => 7, :year_ranges => { :limited => [2025] },:name => "Day 2 of Eid Al Adha", :regions => [:sa]},