Files
mozo-backend/app/assets/javascripts/shared-ember-helpers/translation.js.coffee
T
2014-12-16 22:14:47 +01:00

5 lines
199 B
CoffeeScript

Ember.Handlebars.helper 't', (path, params..., options)->
text = t(path)
tag = if options.hash.bare then text else "<span data-t='#{path}' data-t-attributes='{}'>#{text}</span>"
tag.htmlSafe()