Skip to content

Kirby 3.5.7.1

Locale::get()

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

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

Parameters

Name Type Default Description
$category int|string 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