React Translate Component
A component for React that utilizes the counterpart module and the Interpolate component to translate its content.
Installation
Install via npm:
% npm install react-translate-component
Usage
Nothing to see here, yet.
Example
The examples code is located at example
directory. You can clone this repository and run make install example
and point your web browser to
http://localhost:3000
. In case you are too lazy for that, we also have a live demo of the example app on Heroku.
Contributing
Here's a quick guide:
-
Fork the repo and make install
.
-
Run the tests. We only take pull requests with passing tests, and it's great to know that you have a clean slate: make test
.
-
Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or are fixing a bug, we need a test!
-
Make the test pass.
-
Push to your fork and submit a pull request.
Licence
Released under The MIT License.