From 781f31a4cbcf94207d513bb110968a4d87e2e717 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 10 Oct 2014 00:22:33 +0200 Subject: [PATCH] Add extra method to i18n service. --- app/coffee/modules/base/i18n.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/coffee/modules/base/i18n.coffee b/app/coffee/modules/base/i18n.coffee index 0a4b34e9..f9584746 100644 --- a/app/coffee/modules/base/i18n.coffee +++ b/app/coffee/modules/base/i18n.coffee @@ -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) ->