gwendall:tapi18n-react

v0.1.0Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

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}