Reference

Guide

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 Description
$locale string null

Return type

array

Source code

kirby/src/Toolkit/I18n.php#L169