Skip to content

Kirby 4.5.0

Locale::normalize()

Converts a locale string or an array with constant or string keys to a normalized constant => value array

Locale::normalize(array|string $locale): array

Parameters

Name Type Default
$locale * array|string

Return type

array

Parent class

Kirby\Toolkit\Locale