Detect User Language?

Is there a way to detect the default language that the user speaks? Presumably this would be the current operating system language. I’m trying to tailor the outputs to the user.

It would be great if it were a constant like VERSION.

on linux at least:

julia> ENV["LC_ALL"]
"en_US.UTF-8"

julia> ENV["LANG"]
"en_US.UTF-8"

https://stackoverflow.com/a/43935417/2960695

That’s not such an easy thing to answer. On top of the system language, there are usually also one or more display languages, APIs for which are platform specific (and in the case of linux, sometimes distro specific). Do you have a target OS in mind?

1 Like

Windows and Linux are the target operating systems.