give translate-compile functionality its own directive