| Package | mx.resources |
| Class | public class Locale |
| Inheritance | Locale Object |
Locale.getCurrent(Application.application.systemManager).country
returns the current country.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| country : String
[read-only]
The country of current locale [Read-Only].
| Locale | ||
| language : String
[read-only]
The language of current locale [Read-Only].
| Locale | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| variant : String
[read-only]
The variant of current locale [Read-Only].
| Locale | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| Locale | ||
|
[static]
Gets the current locale.
| Locale | ||
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
|
Returns locale in the form language_country_variant
if variant is present else language_country
| Locale | ||
![]() |
Returns the primitive value of the specified object.
| Object | |
| country | property |
country:String [read-only]The country of current locale [Read-Only].
The default value is "EN".
public function get country():String
Locale.getCurrent(Application.application.systemManager).country
| language | property |
language:String [read-only]The language of current locale [Read-Only].
The default value is "en".
public function get language():String
Locale.getCurrent(Application.application.systemManager).language
| variant | property |
variant:String [read-only]The variant of current locale [Read-Only].
The default value is "".
public function get variant():String
Locale.getCurrent(Application.application.systemManager).variant
| Locale | () | constructor |
| getCurrent | () | method |
public static function getCurrent(sm:ISystemManager):LocaleGets the current locale.
Parameterssm:ISystemManager |
Locale |
Locale.getCurrent(Application.application.systemManager).country
| toString | () | method |
public function toString():StringReturns locale in the form language_country_variant if variant is present else language_country
ReturnsString |
Locale.getCurrent(Application.application.systemManager).toString()