Class Locale
A locale refers to a set of user preferences that tend to be shared across significant swaths of the world. Traditionally, the data associated with it provides support for formatting and parsing of dates, times, numbers, and currencies; for measurement units, for sort-order (collation), plus translated names for time zones, languages, countries, and scripts. The data can also include support for text boundaries (character, word, line, and sentence), text transformations (including transliterations), and other services.
- ICanBoogie\CLDR\Locale
- ICanBoogie\I18n\Locale
Methods summary
public static
Locale.
|
|
public
|
#
__construct( ICanBoogie\CLDR\Repository $repository, $id )
Initializes the |
public
|
|
public
|
|
public
string
|
|
protected
array
|
|
protected
|
|
protected
|
Properties summary
protected
string
|
$id
Language identifier. |
|
protected
string
|
$language
Language of the locale. |
|
protected
string
|
$territory
Territory code for this locale. |
Magic properties
public read-only
string
|
$id
Locale id |
public read-only
string
|
$language
Language of the locale. |
public read-only
string
|
$territory
Territory of the locale. |
public read-only
array
|
$calendar
The data of the default calendar for the locale. |
public read-only
Conventions
|
$conventions
The UNICODE conventions for the locale. |
public read-only
DateFormatter
|
$date_formatter
The data formatter for the locale. |
public read-only
|
$number_formatter
The number formatter for the locale. |
public read-only
|
$translator
The translator for the locale. |