Skip to content

Pre-stage :vn alongside :vi in lunar calendar map (#177)#472

Merged
ppeble merged 1 commit into
holidays:masterfrom
ppeble:bd-holidays-nds.3
Jun 9, 2026
Merged

Pre-stage :vn alongside :vi in lunar calendar map (#177)#472
ppeble merged 1 commit into
holidays:masterfrom
ppeble:bd-holidays-nds.3

Conversation

@ppeble

@ppeble ppeble commented Jun 9, 2026

Copy link
Copy Markdown
Member

Groundwork for the Vietnam region code rename :vi -> :vn (definitions #177).

Adds vn: VIETNAMESE_LUNAR_YEAR_INFO alongside the existing vi: key in CALENDAR_YEAR_INFO_MAP. This is non-breaking and inert today (no vn region exists yet), but it lets the lunar lunar_to_solar calculation resolve once the definitions repo renames Vietnam to vn.

Why now: the definitions PR holidays/definitions#341 renames vi.yaml -> vn.yaml, and its downstream contract test (which clones this repo's master) fails until master knows :vn. Merging this unblocks that check.

The legacy :vi key is removed later in the breaking major release that bumps the definitions submodule.

Test added: to_solar(..., :vn) resolves the Hung Kings Festival dates identically to :vi.

Signed-off-by: Phil Peble <phil@peble.net>
@ppeble
ppeble merged commit 8331c99 into holidays:master Jun 9, 2026
6 checks passed
@ppeble
ppeble deleted the bd-holidays-nds.3 branch June 9, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant