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
The idea behind was to simple parse my locales/[any].json and work with some generics to achieve an validation on my build and prevent my users having any unexpected translation error. A valid note is that my profiler was also showing some weird behavior (something about 20% more profiling time when it has an warning from next-translate).
While I'm sharing I'm also wanting to some improvements since I think we can make a solid version of it!
(I also wrote an more detailed version about it on a docs)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey!
Just sharing how I added TypeSafety to my app with next-translate.
The idea behind was to simple parse my
locales/[any].json
and work with some generics to achieve an validation on my build and prevent my users having any unexpected translation error. A valid note is that my profiler was also showing some weird behavior (something about 20% more profiling time when it has an warning from next-translate).While I'm sharing I'm also wanting to some improvements since I think we can make a solid version of it!
(I also wrote an more detailed version about it on a docs)
Beta Was this translation helpful? Give feedback.
All reactions