This is pretty much this question with a bit more information. My goal is to develop the languages ββinstalled in the system.
Next command
locale -a
displays all languages ββ(in a format such as en_AU.utf8). This seems to match the contents of / usr / lib / locale.
Also causing
LANG=fr_FR.utf8 locale -ck LC_IDENTIFICATION
Provides information about that particular locale that includes the name of the language (which in this case is French).
This seems to be the information contained in / usr / lib / locale / fr _FR.utf8 / LC_IDENTIFICATION.
Is there a way (maybe an API call) to get this information? I looked at the source of the locale utility, but it uses a private structure.
source
share