Add option to not fail when id
is not provided in formatMessage
#3934
mvestergaard
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The requirement to use a babel plugin or similar to generate the
id
forFormattedMessage
is a bit of a blocker from using newer tools such as swc, vitest, turborepo etc..Would it be possible to add a prop on
IntlProvider
that removes the error whenid
is not defined, if there is adefaultMessage
to fall back on?Typically in tests we just want to show the
defaultMessage
so theid
should not really be necessary.Beta Was this translation helpful? Give feedback.
All reactions