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);
|
var format = ngettext('Displaying %s item', 'Displaying %s items', count);
|
||||||
return interpolate(format, [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 () {
|
}); // end of horizon.framework.util.filters
|
||||||
it('should return translated text', inject(function (transFilter) {
|
})(); // end of IIFE
|
||||||
expect(transFilter("Howdy")).toBe("Howdy");
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
|
Loading…
Reference in New Issue
Block a user