getLocaleLanguage

Gets the language from where the locale belongs to.

getLocaleLanguage() → returns string

This function requires Lucee. Not supported on Adobe ColdFusion.

Compatibility

Lucee:

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

Examples sample code invoking the getLocaleLanguage function

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

Fork me on GitHub