Skip to content

Kirby 5.1.1

$kirby->translation()

Load a specific translation by locale

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

Parameters

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

Return type

Kirby\Cms\Translation

This method modifies the existing $app object it is applied to and returns it again.

Parent class

Kirby\Cms\App