Menu

1 / 2

Building hldays #3: A source on every record

DEV Community: typescript·Alexander Denisov·17 days ago
#LloMN3wN
#devtotypescript#devto#dev#quote#verified
Reading 0:00
15s threshold

In the first post I promised "a source on every record". This post is about what that means in practice: where the data comes from, what "verified" means, and how I keep it from going stale.

The short version: every holiday in hldays carries a link, a verbatim quote and the date it was checked, and the build refuses to call a record verified without them.

What a record looks like

Here is Alenquer's municipal holiday, straight from data/PT/municipalities.yaml :

- id : feriado-municipal name : { pt : " Feriado Municipal" } type : local rule : { easter : 39 } status : verified source : url : " https://irn.justica.gov.pt/Contactos-do-Registo/Espaco-Registos-de-Alenquer" verified_at : " 2026-10-16" quote : " Encerrado no feriado municipal (quinta-feira da Ascensão)"

Enter fullscreen mode

Exit fullscreen mode

And a regional one, Madeira's Autonomy Day, which cites the regional decree itself:

- id : dia-da-autonomia name : { pt : Dia da Autonomia , en : Autonomy Day } type : public rule : { fixed : " 04-02"…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.