Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/b3dfbda108ee0e1657463ecd7b99f6b9 to your computer and use it in GitHub Desktop.
Save trycf/b3dfbda108ee0e1657463ecd7b99f6b9 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
function assert( actual, expected ) {
if ( compare( expected, actual ) == 0 ) {
writeOutput( "✔" )
} else {
writeOutput( "✗" )
}
writeOutput( " expected `#expected#`, got `#actual#`<br>" );
}
setLocale( "es_SV");
actual = getlocaleinfo();
assert( actual.country, "SV" );
assert( actual.language, "es" );
assert( actual.name, "español (El Salvador)" );
assert( actual.variant, "" );
assert( actual.display.country, "El Salvador" );
assert( actual.display.language, "español" );
assert( actual.iso.country, "SLV" );
assert( actual.iso.language, "spa" );
dump( actual );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment