How I enabled TypeSafety on my next-translate #980
Unanswered
brenoliradev
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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