The Apertium software is a generic engine and contains the data for many language pairs.
Apertium translates text first by using dictionaries to find the equivalent word in the target language.
Apertium then uses rules about the grammar of each language to form coherent sentences.