Function getLocalizedLanguageName

Source
getLocalizedLanguageName(language: string): string

Get the localized name of a language using Intl.DisplayNames.

The results are interanlly cached, so you don't need to cache this yourself.