-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Support Intl.RelativeTimeFormat for relativeTime
formatting
#1056
Comments
Hey, thanks for the report! I agree, we could definitely support As for See also: next-intl/packages/use-intl/src/core/createFormatter.tsx Lines 247 to 257 in 3eefe6f
Do you need I've added #1057 to look into this. |
At the moment, I only have a need for the I think numberingSystem and style is sufficient for now! |
Sounds good, thanks for the feedback! |
Is your feature request related to a problem? Please describe.
Currently, the formatter for
Formatting date and time ranges
does not support additional configuration other than specifying the exact unit to display the output in.The relative time formatting should support all the options from
Intl.RelativeTimeFormat
and not justRelativeTimeFormatUnit
Describe the solution you'd like
Instead of:
The
RelativeTimeFormatOptions
type should also accept the options from theIntl.RelativeTimeFormat
constructor:Describe alternatives you've considered
The only alternative would be to use the native
Intl
API directly, but this should be integrated into the formatter innext-intl
IMOThe text was updated successfully, but these errors were encountered: