In this circumstance, they can simply share the vocabulary and learn joint BPE for source and target languages, and share the encoder and decoder, which is extremely helpful for word embedding and latent representation alignment.
for example, the distant language pair Danish→Galician can be translated by three easier hops: Danish→English, English→Spanish and Spanish→Galician.