$language->locale()
Returns the PHP locale setting array
$language->locale(int $category = null): array|string|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$category | int |
null
|
If passed, returns the locale for the specified category (e.g. LC_ALL) as string |
Return types
array
orstring
ornull
This method modifies the existing $language
object it is applied to and returns it again.
Parent class
Examples
<?= $kirby->language('en')->locale(LC_ALL) ?>