Skip to content

Kirby 4.1.2

I18n::translation()

Returns the current or any other translation by locale. If the translation does not exist yet, the loader will try to load it, if defined.

I18n::translation(?string $locale = null): array

Parameters

Name Type Default
$locale string|null null

Return type

array

Parent class

Kirby\Toolkit\I18n