redux-polyglot
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -26,3 +26,3 @@ 'use strict'; | ||
return { | ||
p: (0, _selectors.getP)(state, polyglotScope) | ||
p: (0, _selectors.getP)(state, { polyglotScope: polyglotScope }) | ||
}; | ||
@@ -29,0 +29,0 @@ }; |
{ | ||
"name": "redux-polyglot", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Tool for using Polyglot.js with Redux", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -96,4 +96,4 @@ # redux-polyglot | ||
there is an optional parameter to getP(), he's name is polyglotScope. | ||
this is allow you to automatically 'aim' a scope in your phrases object. | ||
there is an optional parameter to getP(). | ||
this is allow you to automatically 'aim' a scope in your phrases object using `polyglotScope` property. | ||
@@ -106,3 +106,3 @@ for example : | ||
})); | ||
const p = getP(store.getState(), 'some.nested.data'); | ||
const p = getP(store.getState(), { polyglotScope: 'some.nested.data' }); | ||
console.log(p.tc('hello')) // => will return 'Hello' | ||
@@ -109,0 +109,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18634