How to Add Translations in a Custom Module – Odoo 18, with AI
- John Julius Danker Khoo
- Jun 9
- 1 min read
Why Add Translations?
Adding translations makes your Odoo modules multilingual, improves user experience, and is essential for international deployments.
Quick Setup Steps
Download the .pot file, this will be the base translation
include ?debug=1 True
Navigate to Settings > Translations > Export Translation
Follow the presented setting, apps to export (your custom module name)
A downloadable .pot file we be provided
Create a folder i18n and place the content inside
Duplicate and Rename the file to .po
Reference Languages
Make Update to .po file accordingly to the msgstr field
Upgrade the custom module
Swith user language in Odoo 18 UI in Setting
Navigate to Settings > Translations > Language
Update the respective language and Add
Best Practice
Regenerate .pot after updates to templates or code.
Always review AI-generated translations.
Keep .po files in i18n/ directory for automatic loading.
Bonus with Gemini*
With Odoo 18 and Google Gemini, you can localize custom modules in minutes. Automate the boring part, and focus on quality and context accuracy.
a) Upload the file as a .txt readble by gemini

b) prompt to copy paste
"Translate the following .po entries from English to Chinese. Only update the msgstr fields"
c) Result

Output result can be copied and saved as <language>.po file
留言