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

Mirror react-intl API #2

Closed
aeirola opened this issue Jun 14, 2017 · 1 comment · Fixed by #5
Closed

Mirror react-intl API #2

aeirola opened this issue Jun 14, 2017 · 1 comment · Fixed by #5

Comments

@aeirola
Copy link

aeirola commented Jun 14, 2017

First, thanks for creating this package! I've been looking for something similar ever since I started using react-intl.

As the documentation suggests this package as an replacement to react-intl, it would be really nice if it would provide the same API as the injected intl object.

So instead of formatting a message with

intl.get('SIMPLE')

it would use the same API as react-intl

intl.formatMessage({id: 'SIMPLE'})

This would make it a lot easier for existing users of react-intl to transition to this package.

@cwtuan
Copy link
Collaborator

cwtuan commented Jun 14, 2017

@aeirola That's good idea. I will implement it recently.

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

Successfully merging a pull request may close this issue.

2 participants