felixge / felixge/node-dateformat

Localization for the day suffix

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.