We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3f6c2c + 333bec6 commit a345c3cCopy full SHA for a345c3c
1 file changed
app/assets/javascripts/rails_admin/ra.i18n.coffee
@@ -2,6 +2,8 @@
2
@RailsAdmin.I18n = class Locale
3
@init: (@locale, @translations)->
4
moment.locale(@locale)
5
+ if typeof(@translations) == "string"
6
+ @translations = JSON.parse(@translations)
7
8
@t:(key) ->
9
humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1)
0 commit comments