1.1.2 • Published 8 years ago
rex-intl-translator v1.1.2
Transform
- Extract react-intl messages from source directory
- Read the previous locale translations
- Convert react-intl messages to locale templates
- Translate react-intl messages
- Write translated locales to disk
Parameters
key | type | default | description |
---|---|---|---|
srcPath | string | undefined | (glob) Path to React components. Transform will extract react-intl from all react components in this path. |
intlPath | string | undefined | (glob) Path to read/write react-intl messages and translated locales to. |
langs | Array | undefined | valid locales |
options | object | undefined |
Options
key | type | default | description |
---|---|---|---|
test | boolean | false | Will extract messages and read translations from disk. If anything is not translated, an error will be thrown. |