Skip to content

Kirby 6.0.0

$language->locale()

Returns the PHP locale setting array

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

Parameters

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

Return types

array<int|string, string>orstringornull

Parent class

Kirby\Cms\Language

Examples

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