Example:
echo Gdn_Locale::Canonicalize('en-us');
prints en_US
public static canonicalize ( string $locale ) : string | ||
$locale | string | The locale code to canonicalize. |
return | string | Returns the canonicalized version of the locale code. |