fix(translateDirective): fixes scope handling