0.0.9 • Published 8 years ago

i18n-calypso-mixin v0.0.9

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
8 years ago

React Mixin for i18n-calypso

Usage

import i18nMixin from 'i18n-calypso-mixin';

const MyComponent = React.createClass( {
    mixins: [ i18nMixin ],
    render: function() {
        return (
            <p>{ this.translate( 'Hello World' ) }</p>
        );
    }
} );

Or inject it in all your components using:

	ReactInjection.Class.injectMixin( i18nMixin );

For more information on how to configure i18n for your project using i18n-calypso, please refer to i18n-calypso's README.

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago