You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
next-intl provides a list formatting function, such as format.list(items, {type: 'conjunction'}). However, it would be great if the t() function could accept an array as an argument, allowing you to include translated text while letting next-intl handle conjunctions or disjunctions automatically.
Describe the solution you'd like
i18next already provides a good solution, as shown here.
Describe alternatives you've considered
For example, a similar solution could look like this:
I agree it could be useful, but next-intl currently depends on intl-messageformat which unfortunately doesn't support this (I think because it's not spec'ed by ICU).
Is your feature request related to a problem? Please describe.
next-intl
provides a list formatting function, such asformat.list(items, {type: 'conjunction'})
. However, it would be great if thet()
function could accept an array as an argument, allowing you to include translated text while lettingnext-intl
handle conjunctions or disjunctions automatically.Describe the solution you'd like
i18next
already provides a good solution, as shown here.Describe alternatives you've considered
For example, a similar solution could look like this:
en.json
.ts
the output would be:
The text was updated successfully, but these errors were encountered: