Get the currently loaded translation of a language in Odoo
I want to know how to get the currently loaded language translation in Odoo using python code.
For example, I would like to determine if the downloaded translation language is in Japanese.
+3
Cookie
source
to share
1 answer
I think you wanted to get the language of the downloaded ode translation. I also ran into this.
Use this
request.env.lang
Example: current_lang = request.env.lang
If the loaded language is in Japanese, the output is ja_JP.
Hope this helps!
+1
mzzzzzzz
source
to share