Class Locale
Representation of a locale.
- ICanBoogie\CLDR\AbstractSectionCollection implements ArrayAccess uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\CollectionTrait, ICanBoogie\CLDR\RepositoryPropertyTrait
- ┗ ICanBoogie\CLDR\Locale uses ICanBoogie\CLDR\CodePropertyTrait
Methods summary
public
__construct( ICanBoogie\CLDR\Repository
$repository
, string $code
)
Initializes the $repository and $code properties.
public
localize( object|string $source_or_code
, array $options
= [] )
: mixed
Localize the specified source.
public
format_number( number $number
, string|null $pattern
= null, array $symbols
= [] )
: string
Formats a number using $number_formatter.
Methods inherited from ICanBoogie\CLDR\AbstractSectionCollection
Methods inherited from ArrayAccess
offsetSet()
,
offsetUnset()
Methods used from ICanBoogie\CLDR\CodePropertyTrait
Methods used from ICanBoogie\CLDR\CollectionTrait
Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait
Properties summary
Magic properties
public read-only
$calendars
: ICanBoogie\CLDR\CalendarCollection
The calendar collection of the locale.