The method is called “zero-shot” translation and can translate new pairs of languages without the software needing to be taught how to do so.