Meteor TAPi18n React
React component for TAPi18n.
Installation
meteor add gwendall:tapi18n-react
How it works
Drop the <TAP /> component with a label parameter.
JSX:
1Meteor.startup(function() { 2 React.render(<TAP label="fields.lastName" />, document.body); 3});
en.i18n.json:
1{ 2 "fields": { 3 "lastName": "Last name" 4 } 5}
fr.i18n.json:
1{ 2 "fields": { 3 "lastName": "Nom de famille" 4 } 5}