Skip to content

Conversation

@akameco
Copy link
Owner

@akameco akameco commented Aug 24, 2019

What: Support intl.formatMessage by default

export const SubmitButton = () => {
  const intl = useIntl()
  const label = intl.formatMessage({
    id: 'a.submit',
    defaultMessage: 'Submit Button'
  })
  return <button aria-label={label}>{label}</button>
}

Why: Convenient

How:

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

@akameco akameco changed the title feat: extractFromFormatMessageCall true Support intl.formatMessage by default Aug 24, 2019
@akameco akameco merged commit 242753e into master Aug 24, 2019
@akameco akameco deleted the extractFromFormatMessageCall-default-true branch August 24, 2019 13:30
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 this pull request may close these issues.

2 participants