i18n-tools
This is a tool for extracting, pulling and pushing i18n translation strings from React components.
It works using the babel-plugin-react-intl, babel-plugin-react-intl-pot and transifex to generate POT and push it to Transifex.
Some notes to consider:
- This tool expects a
TRANSIFEX_API_TOKEN
environment variable. You can obtain a token from here. - This tool will technically work on
JS
packagessrc/
files, but will not work inTypescript
src/
files. For that reason, we recommend pointing it at the built./
directories instead.
Usage info can be found by running the tool with the --help
flag.