That's the definition of a compiler though, "A compiler is a computer program (or set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language)."
All a compiler is is a combination of a translator and (possibly - but not necessarily) an optimiser.