Returns a structure containing info to a specific locale. This function combines the locale functions getLocaleCountry, getLocaleDisplayName, and getLocaleLanguage to a single function.
getLocaleInfo()
→ returns struct
getLocale()ende-DEde-CH...getLocaleDisplayName()EnglishGermanFrench...getLocaleInfo()
Outputs the language locale of the page in German.
getLocaleInfo(dspLocale='German').display.language
Expected Result: Englisch
Outputs the German locale in the language defined for the page.
getLocaleInfo(locale='de-DE', dspLocale=getLocaleDisplayName()).display.country
Expected Result: Germany
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.