-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
feat: add Intl.ListFormat to useFormatter #327
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@stefanprobst is attempting to deploy a commit to the next-intl Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic PR, many thanks! 🙌
I've added some docs and fixed the code formatting, hope that's ok.
# Conflicts: # pnpm-lock.yaml
# Conflicts: # pnpm-lock.yaml
@@ -82,7 +82,7 @@ function Component() { | |||
|
|||
format.dateTime(new Date('2020-11-20T10:36:01.516Z'), 'short'); | |||
format.number(47.414329182, 'precise'); | |||
format.enumeration(['HTML', 'CSS', 'JavaScript'], 'enumeration'); | |||
format.list(['HTML', 'CSS', 'JavaScript'], 'enumeration'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This adds a
list
method touseFormatter()
to format lists withIntl.ListFormat
.closes #326