getLocaleLanguage
Gets the language from where the locale belongs to.
getLocaleLanguage() → returns string
This function requires Lucee. Not supported on Adobe ColdFusion, etc.
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());
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/getlocalelanguage