Skip to content

Kirby 3.5.7.1

$apptranslations->setCurrentLanguage()

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

$apptranslations->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\AppTranslations