Skip to content

Instantly share code, notes, and snippets.

@martinandert
Created September 19, 2016 06:32
Show Gist options
  • Save martinandert/b93e55d05ddc5cf0eab7529874bac974 to your computer and use it in GitHub Desktop.
Save martinandert/b93e55d05ddc5cf0eab7529874bac974 to your computer and use it in GitHub Desktop.
New react-translate-component API
// Before:
// All interpolations are provided directly as props.
<Translate content="greeting" firstName="Peter" />
// After:
// Interpolations are provided via the new `with` prop.
<Translate content="greeting" with={{ firstName: "Peter" }} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment