getDisplayVariant (JavaScript)
Returns a name for the locale's variant code that is appropriate for display to the user. If possible, the name can be localized for Locale. If the locale doesn't specify a variant code, this function returns the empty string.
Defined in
Locale (Runtime - JavaScript)Syntax
getDisplayVariant() : string
getDisplayVariant(Locale:Locale) : string
Return value | Description |
---|---|
string |
The name for the locale's variant code that is appropriate for display to the user. |