Sha256: 3bcd1f876689d1f95d12e9cf13ce423273e1d3ebc55bdabef6551a9014c1545e
Contents?: true
Size: 404 Bytes
Versions: 12
Compression:
Stored size: 404 Bytes
Contents
Rev.registerComponent('I18n', class I18n extends React.Component { static get propTypes() { return { t: React.PropTypes.string.isRequired, } } get text() { if(typeof(I18n) === 'undefined') { throw new Error('Missing i18n-js dependency for Rev.Components.I18n') } return I18n.t(this.props.t, this.props) } render() { return <span>{this.text}</span> } })
Version data entries
12 entries across 12 versions & 1 rubygems