For as simple as Google Translate is to use, the code used to power it is anything but simple to replicate.