Skip to content

Kirby 3.9.8

I18n::translate()

Translates a given message according to the currently set locale

I18n::translate(array|string|null $key, array|string|null $fallback = null, ?string $locale = null): Closure|array|string|null

Parameters

Name Type Default
$key * array|string|null
$fallback array|string|null null
$locale string|null null

Return type

Closure|array|string|null

Parent class

Kirby\Toolkit\I18n