Binary package “translate” in ubuntu xenial
translates words from English into German or viceversa
It looks up a word in a file with language-
(field separator should be \" :: \") and maintains local dictionaries.
So it should be easy to add more languages, if you have such a dictionary.