Modifying element's attribute does not work.
is.displaySearchResult = function(count) {
$('#searchResult')
.attr("data-i18n", "candidateFilter:searchResult")
.attr("data-i18n-options", '{ "count": ' + count + ' }')
.localize();
};
Passing the data-i18n-options as options of localize.
is.displaySearchResultNew = function(count) {
$('#searchResult')
.attr("data-i18n", "candidateFilter:searchResult")
.localize({ count: count});
};