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