```coffeescript
@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
```

Fix JS translations not be object but string
user
```coffeescript
@RailsAdmin ||= {}
@RailsAdmin.I18n = class Locale
  @init: (@locale, @translations)->
    moment.locale(@locale)
    if typeof(@translations) == "string"
      @translations = JSON.parse(@translations)

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