rex-intl-translator
1.1.2 • Public • Published setup
npm i rex-intl-translator -D
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. |
Package Sidebar
Install
npm i rex-intl-translator
Weekly Downloads