Replacing some occurrences of i18n filter with translate directive.