bompi88 / meteor-tapi18n-react

React component for TAPi18n

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meteor TAPi18n React

React component for TAPi18n.

Installation

meteor add gwendall:tapi18n-react

How it works

Drop the <TAP /> component with a label (+ optionally options) parameter.

JSX:

Meteor.startup(function() {
  React.render(<TAP label="messages.welcome" options={{ liked: 'React' }}/>, document.body);
});

en.i18n.json:

{
  "messages": {
    "welcome": "I like __liked__ !"
  }
}

fr.i18n.json:

{
  "messages": {
    "welcome": "J'aime __liked__ !"
  }
}

About

React component for TAPi18n


Languages

Language:JavaScript 100.0%