File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ now you know what messages you still need to update.
3636yarn add --dev react-intl-translations-manager
3737```
3838
39+ or
40+
41+ ```
42+ npm i --save-dev react-intl-translations-manager
43+ ```
44+
3945## Setup
4046### Basic
4147
@@ -52,7 +58,7 @@ Create a script in your package.json
5258Create a file with your config you can run with the npm script
5359``` js
5460// translationRunner.js
55- const manageTranslations = require (' react-intl-translations-manager' );
61+ const manageTranslations = require (' react-intl-translations-manager' ). default ;
5662
5763// es2015 import
5864// import manageTranslations from 'react-intl-translations-manager';
@@ -112,7 +118,7 @@ these messages.
112118- ` languages ` (optional, default: ` [] ` )
113119 - What languages the translation manager needs to maintain. Specifying no
114120 languages actually doesn't make sense, but won't break the translationManager
115- either.
121+ either. (Please do not include the default language, react-intl will automatically include it.)
116122 - example: for ` ['nl', 'fr'] ` the translation manager will maintain a
117123 ` nl.json ` , ` fr.json ` , ` whitelist_nl.json ` and a ` whitelist_fr.json ` file
118124- ` singleMessagesFile ` (optional, default: ` false ` )
You can’t perform that action at this time.
0 commit comments