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
__construct( ICanBoogie\CLDR\Repository $repository
, $id
)
Initializes the ICanBoogie\I18n\Locale::$language
and ICanBoogie\I18n\Locale::$territory
properties.
protected
get_number_formatter( void )
: ICanBoogie\I18n\NumberFormatter
Returns the number formatter for the locale.
protected
get_translator( void )
: ICanBoogie\I18n\Translator
Returns the string translator for the locale.
Properties summary
Magic properties
public read-only
$number_formatter
: ICanBoogie\I18n\NumberFormatter
The number formatter for the locale.