Skip to content

Kirby 6.0.0

$kirby->translation()

Load a specific translation by locale

$kirby->translation(string|null $locale = null): Translation

Parameters

Name Type Default Description
$locale stringornull null Locale name or null for the current locale

Return type

Kirby\Cms\Translation

Parent class

Kirby\Cms\App