GetLocaleDisplayName

Returns the {@link java.util.Locale} display name with an optional display language/locale

Method Signature

GetLocaleDisplayName(locale=[string], dspLocale=[string])

Arguments

Argument
Type
Required
Description
Default

locale

string

false

Optional locale to target - either a common format ( "German" ), or an ISO Directive

dspLocale

string

false

Optional display language locale

Examples

Output current Locale's display name than set it to swiss locale

writeOutput( getLocaleDisplayName() );
writeOutput( " → " );
setLocale( "de_ch" );
writeOutput( getLocaleDisplayName() );

Result: English (United States) → Deutsch (Schweiz)

Additional Examples

writeDump( getLocaleDisplayName() );

Last updated

Was this helpful?