Closed tata9001 closed 7 years ago
Nope, you can't.
it will be fixed very soon with a createGetP
factory 👍
Thanks! Waiting for it....
please check for https://github.com/Tiqa/redux-polyglot/tree/feat/createGetP is it ok for you ?
I don't want to push this without test on a real project. Do you want a release candidate ?
Need documentation about this before publish on redux-polyglot@latest
I have already tested it on my project. It's ok for me. Thanks!
ok, i'll write documentation soon for this (maybe tonight).
I'm thinking to add a function setPolyglotOptions
to redux-polyglot.
even if you can create your own getP
, I want to mutate getP
polyglot options.
so you can import the basic getP
function and use setPolyglotOptions
once at the start of your app.
This is the easy way to change polyglot options.
createGetP
is the pure alternative, very useful for unit testing.
@wangyun1517 @JalilArfaoui @jvincent42 ? what do you think about ? :-)
example :
import { setPolyglotOptions } from 'redux-polyglot';
const options = { allowMissing: true };
dispatch(setPolyglotOptions(options));
Let's talk about this in #68.
Anyway, I just pre-release 0.4.0 on a next
dist-tag ;-)
# to see available dist-tag
npm dist-tag ls redux-polyglot
# install 0.4.0
npm install --save redux-polyglot@0.4.0
Hmmm, i don't know, I will check for this tonight ;-)