From 3f82598a74c8e9f4299fe798e91ee6109ee9f0cd Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Tue, 17 Jul 2018 22:11:18 +0200 Subject: [PATCH] doc(readme): add a precision about createGetP ref #103 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 670ff4f..90540fc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: