Skip to content

A configuration-only repository for national and public holiday information

License

Notifications You must be signed in to change notification settings

OffChainData/national-holidays-config

 
 

Repository files navigation

National holidays config

A configuration first repository

The value in this repository comes from the conf directory. It is designed to be a technology agnostic set of configuration which can be included into any project no matter what programming language it is written in.

National Holidays

National holidays configuration is stored in YAML files in a hierarchy: Country > Region > Year > Holiday.

Holidays can be one or more days long, have names in various languages, and can be marked as "public holiday" or not. A public holiday is one where everybody in the region is entitled to the day off from work.

Countries are given as ISO 3166-1 alpha-2 country codes, for example gb.

Regions can be given any meaningful name in ASCII, for example united_kingdom01.

Languages are given as ISO 639-1 codes, eg. en.

Tests

This repository ships with a test suite written in Ruby using MiniTest. To run the tests:

$ gem install bundler
$ bundle install
$ bundle exec rake test

Coverage

View the current coverage in docs/coverage.md.

How to contribute

Improve the data

This project is managed with Github. To add a new country or update an existing one, open a Pull Request with your proposed changes.

We have adopted the Contributor Covenant as our code of conduct. For full details see CODE_OF_CONDUCT.md.

Write a library

To write a library we recommend importing this configuration via git submodules. For an example see national-holidays-ruby.

Who are we?

We run CharlieHR where knowing about public and national holidays helps us calculate time off for 1000s of companies.

About

A configuration-only repository for national and public holiday information

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 84.7%
  • Python 13.4%
  • Dockerfile 1.9%