Closed ShakurOo closed 7 years ago
It's ok for me. Thank you for contributing :-)
@ShakurOo, Can you fix the last linting error ?
You can use npm run lint
;-)
So are we OK for this PR ?
Yes ! I wan running tests (OK) and I just merged it ! Can you publish a new version ?
@JalilArfaoui, @ShakurOo redux-polyglot@0.6
released on @latest
npm dist-tag
Thanks you for contributing :-)
Readme :
Overwrite phrases
In some case, you should be able to replace some default phrases by others phrases.
For doing this, you have to define an object which contains your overwrited phrases. This object is composed of :
{ 'some.nested.data': 'phrase', ... }
wherekey
is the target path you want to replace andvalue
... the new value.with getP() selector
Add simply
ownPhrases
property and set the new configuration like above to overwrite :with translate() enhancer
Instead passing only string as parameter :
translate('catalog', Dummy)
, pass a plain object which containspolyglotScope
andownPhrases
properties :