Skip to content

Commit d05e06e

Browse files
author
Gertjan Reynaert
authored
Merge pull request #78 from gruberjl/master
Minor note changes in README.md
2 parents 0fd3772 + db4527b commit d05e06e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ now you know what messages you still need to update.
3636
yarn 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
5258
Create 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`)

0 commit comments

Comments
 (0)