Translate .po file using LLM

For a recent project, I needed to translate a .po file. Given the abundance of large language models (LLMs) available today, I decided to use one to translate the file into another language. The choice of LLM has a significant impact on the quality of the output. Depending on the model chosen, the translation may contain inaccuracies or errors that need to be corrected.

Here is an example of using a LLM to translate a .po file. I used LM Studio along with the Mistral AI model to translate .po files from a WordPress plugin.

GitHub project

https://github.com/parsakafi/translate-po-llm

Headshot of Parsa

Hi, I'm Parsa. I'm a software engineer, and I build and fix web apps for WooCommerce store owners, WordPress product teams, and Laravel startups that need a senior contractor they can ship with this week. You can follow me on X, see some of my work on GitHub, or read more about me on about page.