Merge "Remove old trans filter"
This commit is contained in:
commit
4d4045097e
@ -163,18 +163,6 @@
|
||||
var format = ngettext('Displaying %s item', 'Displaying %s items', count);
|
||||
return interpolate(format, [count]);
|
||||
};
|
||||
})
|
||||
});
|
||||
|
||||
/**
|
||||
* @ngdoc filter
|
||||
* @name trans
|
||||
* @description
|
||||
* Returns translated text.
|
||||
*/
|
||||
.filter('trans', ['horizon.framework.util.i18n.gettext', function (gettextFunc) {
|
||||
return function (input) {
|
||||
// NOTE: uses 'gettextFunc' to avoid message collection.
|
||||
return gettextFunc(input);
|
||||
};
|
||||
}]);
|
||||
}());
|
||||
|
@ -202,10 +202,5 @@
|
||||
);
|
||||
});
|
||||
|
||||
describe('trans', function () {
|
||||
it('should return translated text', inject(function (transFilter) {
|
||||
expect(transFilter("Howdy")).toBe("Howdy");
|
||||
}));
|
||||
});
|
||||
});
|
||||
})();
|
||||
}); // end of horizon.framework.util.filters
|
||||
})(); // end of IIFE
|
||||
|
Loading…
Reference in New Issue
Block a user