Open guillaumearm opened 7 years ago
from #67
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.
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.
setPolyglotOptions
createGetP is the pure alternative, very useful for unit testing.
example :
import { setPolyglotOptions } from 'redux-polyglot'; const options = { allowMissing: true }; dispatch(setPolyglotOptions(options));
from #67
example :