#NOT READY YET !!!!
- Use
<FormattedMessage id="newItem" defaultMessage="Add item" />
for adding text in your react components. - Use the babel plugin
babel-plugin-react-intl
to extract them from your source code. - Use
react-intl-webpack-plugin
to combine them into one message file calledreactIntlMessages.json
and put this file into the webpack output path. - Use
reactIntlJson-translator
to translate this file into the translated file. Like professional CAT Tools, we use the concept called Translation Memory (TM) . This is a separate file where all translations are stored and with this file all translations can be reapplied to a newly generatedreactIntlMessages.json
file. - Use
reactIntlJson-loader
to load the translated files and convert them to messages.
npm install reactIntlJson-translator --save-dev
... to be continued