Skip to content

Kirby 3.9.8

Locale::get()

Returns the current locale value for a specified or for all locale categories

Locale::get(string|int $category = 6): array|string

Parameters

Name Type Default Description
$category string|int 6 Locale category constant or constant name

Return type

array|string

Exceptions

Type Description
Kirby\Exception\Exception If the locale cannot be determined
Kirby\Exception\InvalidArgumentException If the provided locale category is invalid

Parent class

Kirby\Toolkit\Locale