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

Version Path
revelry_core-0.1.24.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.23.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.22.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.21.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.20.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.19.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.18.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.17.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.16.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.15.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.14.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6
revelry_core-0.1.13.0 app/assets/javascripts/revelry/ui/formatting/I18n.es6