Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guillaumearm opened this issue Dec 8, 2016 · 0 comments
Open

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

guillaumearm opened this issue Dec 8, 2016 · 0 comments

Comments

@guillaumearm
Copy link
Collaborator

guillaumearm commented Dec 8, 2016

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

  • p.t is a translator
  • p.append is a combinator
  • p.append('...').t is a combined translator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant