rex-intl-translator

1.1.2 • Public • Published

setup

npm i rex-intl-translator -D

Transform

  1. Extract react-intl messages from source directory
  2. Read the previous locale translations
  3. Convert react-intl messages to locale templates
  4. Translate react-intl messages
  5. 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

2

Version

1.1.2

License

GPL-3.0

Last publish

Collaborators

  • gruberjl