i18n-calypso-mixin

0.0.9 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i i18n-calypso-mixin

Weekly Downloads

1

Version

0.0.9

License

GPL-2.0

Last publish

Collaborators

  • tug