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!
source
to share