Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SubstituteHoliday #162

Merged
merged 10 commits into from
Sep 12, 2019
Merged

Conversation

c960657
Copy link
Contributor

@c960657 c960657 commented Aug 21, 2019

I noticed that there is no translation for substituteHoliday:secondChristmasDay in the UnitedKingdom provider. I realised that providing translations for substitute holidays is cumbersome, especially when using global translations.

With this PR, substitute holidays are promoted into a first-class citizen with the SubstituteHoliday class. It references the substituted holiday and can inherit the translations from that with an “observed” suffix appended, if the substitute holiday itself does not have an original name.

The idea of using {0} as a placeholder is inherited from CLDR (see e.g. https://raw.githubusercontent.com/unicode-org/cldr/master/common/main/nl.xml).

@c960657 c960657 force-pushed the substitute-holiday branch from 86e151a to e91d3d4 Compare August 21, 2019 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants