Tiqa / redux-polyglot

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

Add p.append and p.prepend translator combinators #61

Open guillaumearm opened 7 years ago

guillaumearm commented 7 years ago

I think we could add append and prepend combinators for enhanced wording.

examples :

p.append(' ...').tc('home.common.title');
p.prepend('-> ').tc('home.common.title');

p.prepend('-> ').append(' ...').tc('home.common.title')

In the future, we can imagine export more combinators in a new addons/redux-polyglot-combinators.

I think we should open another issue for talking about replace p.tm() by a combinator. please see #62