getLocaleCountry

Gets the country where the locale belongs to.

getLocaleCountry() → 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 getLocaleCountry function

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

Fork me on GitHub