Sha256: 5ba1003aaf17f94fb6039de3ef7e45048bd099217927d9f65d8084e3955739e5
Contents?: true
Size: 596 Bytes
Versions: 40
Compression:
Stored size: 596 Bytes
Contents
if I18n? Rev.registerComponent 'I18n', render: -> className = @classAdd RevI18n: true <span {...@props} className={className}> { I18n.t(@props.t, @props) } </span> # Defines all methods of the I18n library as class methods of Components.I18n # so that you can mix React and low level library access easily: # I81n = App.Components.I18n # <I18n t='home.test' /> # or # I18n.t('home.test') statics: I18n else Rev.registerComponent 'I18n', render: -> throw new Error("Missing i18n-js dependency for I18n component")
Version data entries
40 entries across 40 versions & 1 rubygems