Reference

Guide

$kirby->setCurrentLanguage()

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

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

Parameters

Name Type Default Description
$languageCode string null

Return type

Language|null

Source code

kirby/src/Cms/AppTranslations.php#L60