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.
First results from icu-to-json show, that messages can be compiled to an ultra-slim AST (or even just a plain string—in the case of plain strings) that has very little overhead in comparison to passing raw messages to the client side.
The benefits are:
Faster message formatting at runtime
No parsing on the client side / at runtime
Describe the solution you'd like
Switch out intl-messageformat for icu-to-json and make sure the parser only runs on the server side (potentially cached) / at compile time.
Describe alternatives you've considered
Sticking with intl-messageformat.
Also related: adobe/react-spectrum#3294. However, I think this pattern won't work well with RSC since functions can't be serialized.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
First results from
icu-to-json
show, that messages can be compiled to an ultra-slim AST (or even just a plain string—in the case of plain strings) that has very little overhead in comparison to passing raw messages to the client side.The benefits are:
Describe the solution you'd like
Switch out
intl-messageformat
foricu-to-json
and make sure the parser only runs on the server side (potentially cached) / at compile time.Describe alternatives you've considered
Sticking with
intl-messageformat
.Also related: adobe/react-spectrum#3294. However, I think this pattern won't work well with RSC since functions can't be serialized.
The text was updated successfully, but these errors were encountered: