top of page

How to Add Translations in a Custom Module – Odoo 18, with AI

  • Writer: John Julius Danker  Khoo
    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

  1. 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



  2. Create a folder i18n and place the content inside



  3. Duplicate and Rename the file to .po

    Reference Languages



  4. Make Update to .po file accordingly to the msgstr field

  5. Upgrade the custom module

  6. Swith user language in Odoo 18 UI in Setting

    1. Navigate to Settings > Translations > Language

    2. 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



留言


Subscribe Form

  • facebook
  • linkedin

©2019 by Excelroot Technology Sdn Bhd.

bottom of page