Repository navigation
Improve dutch locale - #680
Open
pieterasselbergs wants to merge 3 commits into
Open
pieterasselbergs wants to merge 3 commits into
pieterasselbergs wants to merge 3 commits into
Conversation
"t/m" and "tot en met" (up to and including) are the usual Dutch way to write an inclusive date range, next to "tot". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
"gister" is the common spoken and written short form of "gisteren", like "morgend" next to "morgen". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adds "kwartaal" / "kwartalen" (quarter / quarters) to the Dutch time unit dictionary, as English already has "quarter", so "volgend kwartaal" and "over 2 kwartalen" are recognised. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(nl): small Dutch locale improvements
Three small, independent additions to the Dutch (
nl) locale, one commit each. Each brings Dutch closer to what English already supports.1.
t/mandtot en metas range connectors"t/m" and "tot en met" (up to and including) are the usual Dutch way to write an inclusive date range. Until now only
totand-joined two dates into a range.NLMergeDateRangeRefiner:10 augustus t/m 12 septemberNLMonthNameMiddleEndianParser:10 t/m 22 augustus 20122.
gisteras yesterday"gister" is the common short form of "gisteren", in the same way as "morgend" next to "morgen", which the casual parser already accepts.
3.
kwartaal/kwartalenas a time unitEnglish has
quarter/quartersin its time unit dictionary. With the Dutch words added,volgend kwartaal,afgelopen kwartaalandover 2 kwartalenare recognised by the existing relative and "later" parsers.Tests
Each commit adds test cases to the existing test blocks of the Dutch test files, in the same form as the cases around them. All new cases fail on 2.10.3. The full suite passes (
TZ=UTC npm test: 158 suites, 753 tests).