felixge / felixge/node-dateformat
Localization for the day suffix
Open
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
It seems like suffixes with `S` flag are hardcoded.
` S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10],`
Is it possible to move them to DateFormatI18n object?
Is there another way to localize such suffixes?
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.