Skip to content

Commit

Permalink
fix: Increase the count of years (18 to 22); Fix GAAD URL (#19)(#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed May 5, 2022
1 parent 3beddef commit 6f1bb3f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/gaad.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const LOCALE_FILE = abspath('../data/locales.json');
// const JSON_TEXT = abspath('../src/gaad-texts.json');

const GAAD_START_YEAR = 2011;
const LIMIT_YEARS = 18; // Was: 15.
const LIMIT_YEARS = 22; // Was: 18, 15.
// const A_DAY = 24 * 60 * 60;

const icalendar = require('icalendar');
Expand Down
36 changes: 34 additions & 2 deletions data/gaad.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"#": "License: MIT. The data is provided 'as is'. I accept no responsibility for the accuracy or otherwise of the data, or any losses arising.",
"name": "gaad-widget",
"version": "3.4.0",
"timestamp": "2020-05-13 16:13:12Z",
"timestamp": "2022-05-05 17:58:27Z",
"url": "https://github.com/nfreear/gaad-widget.git",
"count_years": 18,
"count_years": 22,
"dates": {
"2011": {
"{x}": 0,
Expand Down Expand Up @@ -149,6 +149,38 @@
"{m}": "May",
"{y}": 2028,
"ts": 1842217200000
},
"2029": {
"{x}": 18,
"{d}": 17,
"{th}": "th",
"{m}": "May",
"{y}": 2029,
"ts": 1873666800000
},
"2030": {
"{x}": 19,
"{d}": 16,
"{th}": "th",
"{m}": "May",
"{y}": 2030,
"ts": 1905116400000
},
"2031": {
"{x}": 20,
"{d}": 15,
"{th}": "th",
"{m}": "May",
"{y}": 2031,
"ts": 1936566000000
},
"2032": {
"{x}": 21,
"{d}": 20,
"{th}": "th",
"{m}": "May",
"{y}": 2032,
"ts": 1968620400000
}
}
}
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"after": "Put next year's <a {at}>{g}</a>, Thursday May {d}{th}, {y}, in your diary. See you then!",
"put": "Put gaad-widget on your web site",
"ical": "Download an iCal calendar file",
"url": "http://globalaccessibilityawarenessday.org"
"url": "https://accessibility.day"
}
2 changes: 1 addition & 1 deletion locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"#__known_as": "{k}, conocido en inglés como Global Accessibility Awareness Day (GAAD)",
"#__intro": "Cuando hablamos de la accesibilidad Web nos referimos a el contenido, la navegación y la interacción.",
"after": "Coloque el <a {at}>{g}<a> del próximo año, el jueves {d} de mayo de {y}, en su diario. ¡Hasta entonces!",
"url": "/gaadsp.php"
"url": "/espanol/"
}
2 changes: 1 addition & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"after": "Mettez le <a {at}>{g}</a> de l'année prochaine, le jeudi {d} mai {y} dans votre journal. À plus tard!",
"put": "Mettez 'gaad-widget' sur votre site web",
"ical": "Télécharger un fichier de calendrier (iCal)",
"url": "/gaadfr.php"
"url": "/francais/"
}
3 changes: 2 additions & 1 deletion locales/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"#__after_orig": "Put next year's <a {at}>{gaad}</a>, Thursday May {day}{th}, {year}, in your diary. See you then!",
"after": "",

"#__url_orig": "http://globalaccessibilityawarenessday.org",
"#__url_orig": "https://accessibility.day",
"#__url_OLD": "http://globalaccessibilityawarenessday.org",
"url": "",

"#__put_orig": "Put {it} on your web site",
Expand Down

0 comments on commit 6f1bb3f

Please sign in to comment.