Skip to content

Kirby 4.5.0

Translation::load()

Loads the translation from the json file in Kirby's translations folder

Translation::load(string $code, string $root, array $inject = [ ]): Kirby\Cms\Translation

Parameters

Name Type Default
$code * string
$root * string
$inject array [ ]

Return type

Kirby\Cms\Translation

Parent class

Kirby\Cms\Translation