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

Support variable #33

Closed
Victorien-Tardif opened this issue Feb 26, 2019 · 1 comment
Closed

Support variable #33

Victorien-Tardif opened this issue Feb 26, 2019 · 1 comment

Comments

@Victorien-Tardif
Copy link

  • version: 0.14.0
  • node version: 11.9.0
  • yarn version: 1.13.0

report a bug

The script is not working using variables:

const messages = { hello: 'hello world' }

export default defineMessages(messages)

What is the current behavior?:

[React Intl] defineMessages() must be called with an object expression with values that are React Intl Message Descriptors, also defined as object expressions.

@akameco
Copy link
Owner

akameco commented Aug 20, 2019

This is not a problem with this library. Check https://github.com/formatjs/formatjs/tree/master/packages/babel-plugin-react-intl

@akameco akameco closed this as completed Aug 20, 2019
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

2 participants