Tiqa / redux-polyglot

Polyglot.js bindings for Redux
MIT License
58 stars 13 forks source link

translate can take an array of string #47

Closed guillaumearm closed 7 years ago

guillaumearm commented 7 years ago

today, translate() enhancer can select a polyglotScope giving a string.

why not give the possibility to provide many scopes in an array ?

guillaumearm commented 7 years ago

utils :

const mergeAll = t => t.reduce((mergedObj, obj) => Object.assign({}, mergedObj, obj), {})
JalilArfaoui commented 7 years ago

Nay ! If you need many scopes, you just don't pass any scope and access your keys directly as usual. IMHO polyglotScope must stay what it is ... a sugar.

guillaumearm commented 7 years ago

you're right, i close this issue.