Add extra method to i18n service.

stable
Andrey Antukh 2014-10-10 00:22:33 +02:00
parent ea9997c118
commit 781f31a4cb
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class I18nService extends taiga.Service
i18n.init(@.options)
@rootscope.t = i18n.t
t: (path, opts) ->
return i18n.t(path, opts)
I18nDirective = ($rootscope, $i18n) ->
link = ($scope, $el, $attrs) ->