The function info(“languagecode”) returns the language code for the current location. This is a two letter code, for example en, fr, de etc. The result of this function will immediately reflect any changes made in the System Preferences Language & Region panel.
I am living in Germany, and my Mac is set up accordingly.
The function info(“languagecode”) gives me an unexpected result: “en” instead of “de”.
FWIW: The similar function info(“countrycode”) delivers the correct result “DE”.