How to detect the OS default language in python?

Viewed 25644

Is there any universal method to detect the OS default language? (regardless what is the OS that is running the code)

import os
os.getenv('LANG')

The above code works under Linux, does it work under other OS?

3 Answers
Related