Next.js Discord

Discord Forum

Next-intl type safety

Unanswered
Jumbo flying squid posted this in #help-forum
Open in Discord
Jumbo flying squidOP
Has anyone gotten next-intl to be type safe? Instead of passing strings to fetch messages we are restricted to the json layout. I believe react itnl does this ie.
MessageId.Common.Proof 
is used instead of a string. This enforces we only use messages that actually exist.

0 Replies