Enable translate directive to be used as an element.

Translate directive can now be used as an element in addition to an attribute.