Locale
class in package klyn.i18n

    public class Locale extends Object:

Object
└ Locale

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.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | amPm `amPm as ArrayList<String>:` | No summary.
public property | country `country as String:` | The country code (uppercase ISO 3166).
public property | dayNames `dayNames as ArrayList<String>:` | No summary.
public static property | default `default as Locale:` | Returns the current default locale for the environment.
public property | language `language as String:` | The language code (lowercase ISO 639).
public property | monthNames `monthNames as ArrayList<String>:` | No summary.
public property | shortDayNames `shortDayNames as ArrayList<String>:` | No summary.
public property | shortMonthNames `shortMonthNames as ArrayList<String>:` | No summary.

Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Locale `Locale(language as String, country as String = ""):` | Constructs a new Locale from language and country codes.
public static readonly ARABIC as | Locale `Locale = Locale("ar", "SA")` | Predefined constant for Arabic (Saudi Arabia).
public static readonly CHINA as | Locale `Locale = Locale("zh", "CN")` | Predefined constant for Chinese (China).
public static readonly FRANCE as | Locale `Locale = Locale("fr", "FR")` | Predefined constant for French (France).
public static readonly GERMANY as | Locale `Locale = Locale("de", "DE")` | Predefined constant for German (Germany).
public static readonly GREECE as | Locale `Locale = Locale("el", "GR")` | Predefined constant for Greek (Greece).
public static readonly HEBREW as | Locale `Locale = Locale("he", "IL")` | Predefined constant for Hebrew (Israel).
public static readonly ISRAEL as | Locale `Locale = Locale("he", "IL")` | Predefined constant for Hebrew (Israel).
public static readonly ITALY as | Locale `Locale = Locale("it", "IT")` | Predefined constant for Italian (Italy).
public static readonly JAPAN as | Locale `Locale = Locale("ja", "JP")` | Predefined constant for Japanese (Japan).
public static readonly PORTUGAL as | Locale `Locale = Locale("pt", "PT")` | Predefined constant for Portuguese (Portugal).
public static readonly RUSSIA as | Locale `Locale = Locale("ru", "RU")` | Predefined constant for Russian (Russia).
public static readonly SPAIN as | Locale `Locale = Locale("es", "ES")` | Predefined constant for Spanish (Spain).
public static readonly UK as | Locale `Locale = Locale("en", "GB")` | Predefined constant for English (United Kingdom).
public static readonly US as | Locale `Locale = Locale("en", "US")` | Predefined constant for English (United States).
public static readonly VIETNAM as | Locale `Locale = Locale("vi", "VN")` | Predefined constant for Vietnamese (Vietnam).

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | equals `equals(other as Object) as Boolean:` | No summary.
public override | toString `toString() as String:` | No summary.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml