public class Locale extends Object:
A Locale object represents a specific geographical, political, or cultural region.
It is used to localize information such as date/time formatting, number formatting, and string translations.
| Modifier and Type | Member | Description |
|---|---|---|
| public property | amPm | No summary. |
| public property | countrycountry as String: |
The country code (uppercase ISO 3166). |
| public property | dayNames | No summary. |
| public static property | defaultdefault as Locale: |
Returns the current default locale for the environment. |
| public property | languagelanguage as String: |
The language code (lowercase ISO 639). |
| public property | monthNames | No summary. |
| public property | shortDayNames | No summary. |
| public property | shortMonthNames | No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Locale | Constructs a new Locale from language and country codes. |
| public static readonly ARABIC as | Locale | Predefined constant for Arabic (Saudi Arabia). |
| public static readonly CHINA as | Locale | Predefined constant for Chinese (China). |
| public static readonly FRANCE as | Locale | Predefined constant for French (France). |
| public static readonly GERMANY as | Locale | Predefined constant for German (Germany). |
| public static readonly GREECE as | Locale | Predefined constant for Greek (Greece). |
| public static readonly HEBREW as | Locale | Predefined constant for Hebrew (Israel). |
| public static readonly ISRAEL as | Locale | Predefined constant for Hebrew (Israel). |
| public static readonly ITALY as | Locale | Predefined constant for Italian (Italy). |
| public static readonly JAPAN as | Locale | Predefined constant for Japanese (Japan). |
| public static readonly PORTUGAL as | Locale | Predefined constant for Portuguese (Portugal). |
| public static readonly RUSSIA as | Locale | Predefined constant for Russian (Russia). |
| public static readonly SPAIN as | Locale | Predefined constant for Spanish (Spain). |
| public static readonly UK as | Locale | Predefined constant for English (United Kingdom). |
| public static readonly US as | Locale | Predefined constant for English (United States). |
| public static readonly VIETNAM as | Locale | Predefined constant for Vietnamese (Vietnam). |