commenthol / date-holidays

worldwide holidays
https://commenthol.github.io/date-holidays/
Other
907 stars 234 forks source link

Update and rename IN.todo to IN.yaml #477

Open nishantnathhoney opened 1 month ago

nishantnathhoney commented 1 month ago

Adding "fixed" holidays for India

https://en.wikipedia.org/wiki/Public_holidays_in_India

commenthol commented 1 month ago

Hi @nishantnathhoney, thanks for your contribution. You can find the meanings of the tags used in the yaml files under docs/specification.md _name is a reference to a tag in names.yaml and needs to be updated. Maybe you'd like to consider my proposed:

holidays:
  # @source https://en.wikipedia.org/wiki/Public_holidays_in_India
  IN:
    names:
      en: India
    langs:
      - hi
      - en
    zones:
      - Asia/Kolkata
    dayoff: ''
    days:
      01-26:
        name: 
          en: Republic Day
      08-15:
        _name: Independence Day
      10-02:
        name: 
          en: Gandhi Jayanti
    # states:
    #   AN:
    #     name: Andaman and Nicobar Islands
    #   AP:
    #     name: Andhra Pradesh
    #   AR:
    #     name: Arunachal Pradesh
    #   AS:
    #     name: Assam
    #   BR:
    #     name: Bihar
    #   CH:
    #     name: Chandigarh
    #   CT:
    #     name: Chhattisgarh
    #   DD:
    #     name: Daman and Diu
    #   DL:
    #     name: Delhi
    #   DN:
    #     name: Dadra and Nagar Haveli
    #   GA:
    #     name: Goa
    #   GJ:
    #     name: Gujarat
    #   HP:
    #     name: Himachal Pradesh
    #   HR:
    #     name: Haryana
    #   JH:
    #     name: Jharkhand
    #   JK:
    #     name: Jammu and Kashmir
    #   KA:
    #     name: Karnataka
    #   KL:
    #     name: Kerala
    #   LD:
    #     name: Lakshadweep
    #   MH:
    #     name: Maharashtra
    #   ML:
    #     name: Meghalaya
    #   MN:
    #     name: Manipur
    #   MP:
    #     name: Madhya Pradesh
    #   MZ:
    #     name: Mizoram
    #   NL:
    #     name: Nagaland
    #   OR:
    #     name: Odisha
    #   PB:
    #     name: Punjab
    #   PY:
    #     name: Puducherry
    #   RJ:
    #     name: Rajasthan
    #   SK:
    #     name: Sikkim
    #   TG:
    #     name: Telangana
    #   TN:
    #     name: Tamil Nadu
    #   TR:
    #     name: Tripura
    #   UP:
    #     name: Uttar Pradesh
    #   UT:
    #     name: Uttarakhand
    #   WB:
    #     name: West Bengal

Then I'd appreciate looking at CONTRIBUTING.md and following the steps described to generate the initial fixtures files to allow passing the tests.