Answer the question
In order to leave comments, you need to log in
How to do localization in React?
Friends,
How to beautifully translate an application in React?
I see such tasks before localization:
Answer the question
In order to leave comments, you need to log in
I close the question, I figured it out.
defineMessages is not needed at all, it's an empty key extraction wrapper that works without it.
If anyone is interested: https://github.com/yakimchuk/react-intl-extractor
Just call the command and all the keys will be exported to JSON.
react-intl
uses ID to work with localization, why are there many actions to translate one key? It does all the tasks you describe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question