Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Added Belgian public holidays #35

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 45 additions & 11 deletions build/moment-holiday-pkg.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/moment-holiday-pkg.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions build/moment-holiday-us.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/moment-holiday-us.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/moment-holiday.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/moment-holiday.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function generate(locales, set, minify, filename) {

if (set) {
if (set.constructor !== Array) { set = [set]; }
append = "\n//! Set default locales\n(function() {\n var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;";
append = "\n//! Set default locales\n(function() {\n var moment = require('moment')";
set.forEach(function(l){ append += '\n moment.modifyHolidays.add("' + l + '");'; });
append += '\n}).call(this);';
}
Expand Down
2 changes: 1 addition & 1 deletion locale/argentina.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : NahuelOvejero : https://github.com/NahuelOvejero

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.argentina = {
"Año Nuevo": {
Expand Down
76 changes: 76 additions & 0 deletions locale/belgium.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
//! moment-holiday.js locale configuration
//! locale : BE
//! author : Kodie Grantham : https://github.com/kodie
//! locale-author: lordldx : https://github.com/lordldx
//
/* regions :
BE: Belgium
*/

(function() {
var moment = require("moment");

moment.holidays.belgium = {
"Nieuwjaar": {
date: '1/1',
keywords: ['nieuwjaardag'],
keywords_n: ['oudejaar']
},
"Pasen": {
date: 'easter',
keywords:['paaszondag'],
keywords_n: ['maandag']
},
"Paasmaandag": {
date: 'easter+1',
keywords_y: ['maandag']
},
"Dag van de arbeid": {
date: '5/1',
keywords: ['arbeid', 'socialist', 'socialisten', 'sossen', 'may day']
},
"Onze Heer Hemelvaart": {
date: 'easter+39',
keywords_y: ['hemelvaart'],
keywords: ['hemelvaartsdag'],
keywords_n: ['vrouw']
},
"Pinksteren": {
date: 'easter+49',
keywords:['pentecost'],
keywords_n: ['maandag']
},
"Pinkstermaandag": {
date: 'easter+50',
keywords:['pentecost'],
keywords_y: ['maandag']
},
"Nationale feestdag": {
date: '7/21'
},
"Onze Lieve Vrouw Hemelvaart": {
date: '8/15',
keywords: ['hemelvaart', 'halfoogst'],
keywords_n: ['heer']
},
"Allerheiligen": {
date: '11/1',
keywords: ['all saints']
},
"Wapenstilstand": {
date: '11/11',
keywords: ['wapen', 'stilstand', 'armstice']
},
"Kerstmis": {
date: '12/25',
keywords: ['kerst', 'christ', 'x-?mas', 'kerstdag'],
keywords_n: ['eve', 'avond', 'kerstavond', 'tweede', '2']
},
"Tweede kerstdag": {
date: '12/26',
keywords: ['eve', 'avond', 'kerstavond']
}
};

if ((typeof module !== 'undefined' && module !== null ? module.exports : void 0) != null) { module.exports = moment; }
}).call(this);
2 changes: 1 addition & 1 deletion locale/canada.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.canada = {
"New Year's Day": {
Expand Down
2 changes: 1 addition & 1 deletion locale/colombia.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.colombia = {
"Día de los Reyes Magos": {
Expand Down
2 changes: 1 addition & 1 deletion locale/croatia.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : diomed : https://github.com/diomed

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.croatia = {
"Nova Godina": {
Expand Down
2 changes: 1 addition & 1 deletion locale/denmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : Alexander Køpke : https://github.com/alexanderkopke

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.denmark = {
"Nytårsdag": {
Expand Down
2 changes: 1 addition & 1 deletion locale/easter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : Kodie Grantham : https://github.com/kodie

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.easter = {
"Ash Wednesday": {
Expand Down
2 changes: 1 addition & 1 deletion locale/finland.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : Kodie Grantham : https://github.com/kodie

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.finland = {
"Uudenvuodenpäivä": {
Expand Down
2 changes: 1 addition & 1 deletion locale/germany.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.germany = {
"Neujahrstag": {
Expand Down
2 changes: 1 addition & 1 deletion locale/ghana.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.ghana = {
"New Year's Day": {
Expand Down
2 changes: 1 addition & 1 deletion locale/india.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : wonder2991 : https://github.com/wonder2991

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.india = {
"New Year's Day": {
Expand Down
2 changes: 1 addition & 1 deletion locale/japan.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : garroadran : https://github.com/garroadran/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.japan = {
"Gantan": {
Expand Down
2 changes: 1 addition & 1 deletion locale/nigeria.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.nigeria = {
"New Year's Day": {
Expand Down
2 changes: 1 addition & 1 deletion locale/russia.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : Vasilii Vakhtin : https://github.com/Vasil11

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.russia = {
"New Year and Christmas Holidays": {
Expand Down
2 changes: 1 addition & 1 deletion locale/switzerland.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.switzerland = {
"Neujahrstag": {
Expand Down
2 changes: 1 addition & 1 deletion locale/united_kingdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.united_kingdom = {
"New Year's Day": {
Expand Down
2 changes: 1 addition & 1 deletion locale/united_states.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! author : Kodie Grantham : https://github.com/kodie

(function() {
var moment = (typeof require !== 'undefined' && require !== null) && !require.amd ? require('moment') : this.moment;
var moment = require("moment");

moment.holidays.united_states = {
"New Year's Day": {
Expand Down
Loading