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

Localization for the day suffix #106

Open
iluha5 opened this issue Sep 15, 2020 · 0 comments
Open

Localization for the day suffix #106

iluha5 opened this issue Sep 15, 2020 · 0 comments

Comments

@iluha5
Copy link

iluha5 commented Sep 15, 2020

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.

@iluha5 iluha5 changed the title Option for localization day suffix Localization for the day suffix Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant