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


Output current Locale's diplay name than set it to swiss locale

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

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


Fork me on GitHub