globalizejs / globalizejs/globalize
Date: Handle `{_value, _number}` entries
Open
date module
help wanted
new feature
quick change
- Dominant language
- JavaScript
- Stars
- 4.8k
- Forks
- 585
- PR merge metrics
- No merged PRs in 30d
Description
`Globalize("haw").formatDate(new Date(), {datetime: "short"})` throws `Error: E_UNSUPPORTED: Unsupported {"feature":"timezone pattern`v`"}`. But, what happens is that `/main/haw/.../dateFormats/short` is actually an object instead of a string (expected).
```
"short": {
"_value": "d/M/yy",
"_numbers": "M=romanlow"
}
```
`haw` and `haw-US` seems to be the only locales affected.
1. Find such case in the UTS#35 specification.
2. Fix implementation.
Contributor guide
Assessment
This issue has not been assessed yet.