The locale identifier to look up (e.g. "de_CH"). Must be one of the strings returned by availableLocales().
OptionalbaseLocaleCode: string | null
The locale to display the name in. If omitted, the user's currently selected locale is used. Must be one of the strings returned by availableLocales().
A dictionary with name (e.g. "German") and nameWithDialect (e.g. "German (Switzerland)"), or null if either locale code is invalid.
Returns the localized display name for a locale identifier.