Skip to content

Kirby 3.6.0

$kirby->setCurrentLanguage()

Load and set the current language if it exists Otherwise fall back to the default language

$kirby->setCurrentLanguage(string $languageCode = null): Kirby\Cms\Language|null

Parameters

Name Type Default
$languageCode string null

Return type

Kirby\Cms\Language|null

Parent class

Kirby\Cms\App