Getting the multilingual Locale from Language

Permalink
I have a string variable $Language with the value "nb" for the Norwegian language.

How to get the related Norwegian Locale ie. "nb_NO" from that string?

For an object $Lang as an example it's possible to get the related Locale from $Lang->getLocale();

But what about starting with the language being represented by a string variable and not an object?

Janks
 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.