Skip to content

Kirby 3.7.5

$language->locale()

Returns the PHP locale setting array

$language->locale(int $category = null): array|string

Parameters

Name Type Default Description
$category int null If passed, returns the locale for the specified category (e.g. LC_ALL) as string

Return type

array|string

Parent class

Kirby\Cms\Language

Example

<?= $kirby->language('en')->locale(LC_ALL) ?>