diff --git a/app/js/i18n.js b/app/js/i18n.js index e5fe0ee1..8ea22717 100644 --- a/app/js/i18n.js +++ b/app/js/i18n.js @@ -128,6 +128,18 @@ angular.module('myApp.i18n', ['izhukov.utils']) return _; }]) + .directive('ngPluralize', ['_', function(_) { + return { + restrict: 'EA', + priority: 1, // execute before built-in ngPluralize + compile: function(element) { + var msgid = element.attr('when'); + var msgstr = _(msgid); + element.attr('when', msgstr); + } + } + }]) + .directive('myI18n', ['_', function(_) { return { restrict: 'EA',