getLocaleDisplayName

Gets a locale value and displays the name in a manner
that is appropriate to a specific locale. By default,
gets the current locale in the current locale's language.

getLocaleDisplayName() → returns string

Compatibility

Lucee:

DEPRECATED since version 5 Lucee5+ Deprecated in favor of getLocaleInfo()

Examples
Sample code invoking the getLocaleDisplayName function

writeOutput(getLocaleDisplayName());
writeOutput(' → ');
setLocale('de_ch');
writeOutput(getLocaleDisplayName());

Expected Result: English (United States) → Deutsch (Schweiz)


Fork me on GitHub