mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
240 lines
5.4 KiB
YAML
Vendored
240 lines
5.4 KiB
YAML
Vendored
# Romanian holiday definitions for the Ruby Holiday gem.
|
|
#
|
|
# Created: 2013-07-23 by Mihai Târnovan
|
|
# Sources:
|
|
# - http://ro.wikipedia.org/wiki/S%C4%83rb%C4%83tori_publice_%C3%AEn_Rom%C3%A2nia
|
|
# - http://en.wikipedia.org/wiki/Public_holidays_in_Romania
|
|
#
|
|
# Changes 2019-03-11
|
|
# - Add Unirea Principatelor Române (since 2017)
|
|
# - Add Ziua Copilului (since 2017)
|
|
# - Add Vinerea Mare (since 2018)
|
|
#
|
|
# Sources:
|
|
# - https://www.mediafax.ro/politic/legea-prin-care-24-ianuarie-a-fost-declarata-zi-libera-nelucratoare-a-fost-promulgata-de-iohannis-15777292
|
|
# - https://www.avocatnet.ro/articol_43954/Din-2017-salaria%C8%9Bii-vor-sta-acas%C4%83-%C8%99i-de-Ziua-Copilului-1-iunie-inclus%C4%83-de-azi-pe-lista-liberelor-legale.html
|
|
# - https://www.mediafax.ro/social/iohannis-a-promulgat-legea-prin-care-vinerea-mare-este-sarbatoare-legala-nelucratoare-17058413
|
|
---
|
|
months:
|
|
0:
|
|
- name: Paștele - Vinerea Mare # Good Friday
|
|
regions: [ro]
|
|
function: orthodox_easter(year)
|
|
function_modifier: -2
|
|
year_ranges:
|
|
from: 2018
|
|
- name: Paștele - duminică
|
|
regions: [ro]
|
|
function: orthodox_easter(year)
|
|
- name: Paștele - luni
|
|
regions: [ro]
|
|
function: orthodox_easter(year)
|
|
function_modifier: 1
|
|
- name: Rusaliile - 50
|
|
regions: [ro]
|
|
function: orthodox_easter(year)
|
|
function_modifier: 49
|
|
- name: Rusaliile - 51
|
|
regions: [ro]
|
|
function: orthodox_easter(year)
|
|
function_modifier: 50
|
|
1:
|
|
- name: Anul nou
|
|
regions: [ro]
|
|
mday: 1
|
|
- name: Anul nou
|
|
regions: [ro]
|
|
mday: 2
|
|
- name: Unirea Principatelor Române
|
|
regions: [ro]
|
|
mday: 24
|
|
year_ranges:
|
|
from: 2017
|
|
5:
|
|
- name: Ziua muncii
|
|
regions: [ro]
|
|
mday: 1
|
|
6:
|
|
- name: Ziua Copilului
|
|
regions: [ro]
|
|
mday: 1
|
|
year_ranges:
|
|
from: 2017
|
|
8:
|
|
- name: Adormirea Maicii Domnului
|
|
regions: [ro]
|
|
mday: 15
|
|
11:
|
|
- name: Sfântul Apostol Andrei
|
|
regions: [ro]
|
|
mday: 30
|
|
12:
|
|
- name: Ziua Națională
|
|
regions: [ro]
|
|
mday: 1
|
|
- name: Sărbătoarea Nașterii Domnului
|
|
regions: [ro]
|
|
mday: 25
|
|
- name: Sărbătoarea Nașterii Domnului
|
|
regions: [ro]
|
|
mday: 26
|
|
|
|
tests:
|
|
- given:
|
|
date: '2017-04-14'
|
|
regions: ["ro"]
|
|
expect:
|
|
holiday: false
|
|
- given:
|
|
date: '2018-04-06'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - Vinerea Mare"
|
|
- given:
|
|
date: '2019-04-26'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - Vinerea Mare"
|
|
- given:
|
|
date: '1961-04-09'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - duminică"
|
|
- given:
|
|
date: '1961-04-10'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - luni"
|
|
- given:
|
|
date: '2013-05-05'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - duminică"
|
|
- given:
|
|
date: '2013-05-06'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - luni"
|
|
- given:
|
|
date: '2027-05-02'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - duminică"
|
|
- given:
|
|
date: '2027-05-03'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Paștele - luni"
|
|
- given:
|
|
date: '2012-06-04'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Rusaliile - 51"
|
|
- given:
|
|
date: '2013-06-23'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Rusaliile - 50"
|
|
- given:
|
|
date: '2013-06-24'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Rusaliile - 51"
|
|
- given:
|
|
date: '1986-06-22'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Rusaliile - 50"
|
|
- given:
|
|
date: '1986-06-23'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Rusaliile - 51"
|
|
- given:
|
|
date: '2009-01-01'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Anul nou"
|
|
- given:
|
|
date: '2014-01-02'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Anul nou"
|
|
- given:
|
|
date: '2017-01-24'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Unirea Principatelor Române"
|
|
- given:
|
|
date: '2016-01-24'
|
|
regions: ["ro"]
|
|
expect:
|
|
holiday: false
|
|
- given:
|
|
date: '2009-05-01'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Ziua muncii"
|
|
- given:
|
|
date: '2017-06-01'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Ziua Copilului"
|
|
- given:
|
|
date: '2016-06-01'
|
|
regions: ["ro"]
|
|
expect:
|
|
holiday: false
|
|
- given:
|
|
date: '2012-08-15'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Adormirea Maicii Domnului"
|
|
- given:
|
|
date: '2013-11-30'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Sfântul Apostol Andrei"
|
|
- given:
|
|
date: '2013-12-01'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Ziua Națională"
|
|
- given:
|
|
date: '2013-12-25'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Sărbătoarea Nașterii Domnului"
|
|
- given:
|
|
date: '2013-12-26'
|
|
regions: ["ro"]
|
|
options: ["informal"]
|
|
expect:
|
|
name: "Sărbătoarea Nașterii Domnului"
|
|
- given:
|
|
date: '2013-07-23'
|
|
regions: ["ro"]
|
|
expect:
|
|
holiday: false
|