Skip to content

Kirby 3.9.8

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