Locale::get()
Returns the current locale value for a specified or for all locale categories
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 |