Skip to content

Kirby 5.1.2

Locale::set()

Sets the PHP locale with a locale string or an array with constant or string keys

Locale::set(array|string $locale): void

Parameters

Name Type Default
$localerequired arrayorstring no default value

Parent class

Kirby\Toolkit\Locale