Hi Vikrant Negi! How do I go about doing this with multiple screens? Can I have all of these code in a translate.js file and pass the translate variable as a prop?
translate.js
You can put all your translations in the translate.js file and use the keys in your multiple files
I figured it out! The question now is how do I use useMemo hook instead of lodash.memoize?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Vikrant Negi! How do I go about doing this with multiple screens? Can I have all of these code in a
translate.jsfile and pass the translate variable as a prop?You can put all your translations in the
translate.jsfile and use the keys in your multiple filesI figured it out! The question now is how do I use useMemo hook instead of lodash.memoize?