Sha256: 6de8b3b044f0eb4a58775b0bbdf2a1fbf62dc1e5809defb12126ce0a7886de33

Contents?: true

Size: 241 Bytes

Versions: 6

Compression:

Stored size: 241 Bytes

Contents

@RailsAdmin ||= {}
@RailsAdmin.I18n = class Locale
  @init: (@locale, @translations)->
    moment.locale(@locale)

  @t:(key) ->
    humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1)
    @translations[key] || humanize

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_admin-1.2.0 app/assets/javascripts/rails_admin/ra.i18n.coffee
rails_admin-1.1.1 app/assets/javascripts/rails_admin/ra.i18n.coffee
rails_admin-1.1.0 app/assets/javascripts/rails_admin/ra.i18n.coffee
rails_admin-1.0.0 app/assets/javascripts/rails_admin/ra.i18n.coffee
rails_admin-1.0.0.rc app/assets/javascripts/rails_admin/ra.i18n.coffee
rails_admin-0.8.1 app/assets/javascripts/rails_admin/ra.i18n.coffee