Tiqa / redux-polyglot

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

Adding has to scoped polyglot #106

Closed cicloon closed 5 years ago

cicloon commented 5 years ago

Problem

Actually the getP selector is returning a Polyglot instance with some of the methods scoped to the specified polyglotScope, but others, like has aren't, this forbids checking if a translation exists.

Solution

Add the scoped has method to the scoped polyglot instance returned by the getP selector.