Skip to content

Commit

Permalink
doc(readme): add a precision about createGetP
Browse files Browse the repository at this point in the history
ref #103
  • Loading branch information
guillaumearm committed Jul 17, 2018
1 parent 5a1e126 commit 3f82598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ console.log(p.tc('catalog')) // => will return 'Cars'
```

### Use polyglot options
if you want to use `onMissingKey`, `allowMissing` or `warn` [polyglot](http://airbnb.io/polyglot.js/) options, you can use the `createGetP` function to create a custom `getP`.
if you want to use `onMissingKey`, `allowMissing` or `warn` [polyglot](http://airbnb.io/polyglot.js/) options, you can use the `createGetP` factory selector to create a custom `getP`.

usage :
```js
Expand All @@ -190,6 +190,8 @@ const options = {
export const getP = createGetP(options);
```

Please note you cannot use translate hoc with a custom `getP` selector.

## Team

These folks keep the project moving and are resources for help:
Expand Down

0 comments on commit 3f82598

Please sign in to comment.