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.
Problem
Actually the
getP
selector is returning aPolyglot
instance with some of the methods scoped to the specifiedpolyglotScope
, but others, likehas
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.