Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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