feat(directive): translate attributes using directive

translate directive can process attributes now. as per #568 
Yeah, that's right. I hadn't realized we need `successful` here.