At present, there are some problems in translation teaching. For example, classroom teaching is covered by the teacher 'tasks, which leads to students' weak initiative and obscure translation features. By establishing a multilingual corpus teaching platform based on the transformer model, this paper briefly outlines its methods and the code operation mode in the process of translation, and innovates the translation teaching methods by using computer algorithms and other related knowledge. Through the design of computer language, this paper builds a translation teaching platform to improve the teaching effect.