feat(directive): translate attributes using directive