$kirby->setCurrentLanguage()
Load and set the current language if it exists Otherwise fall back to the default language
$kirby->setCurrentLanguage(string|null $languageCode = null): Kirby\Cms\Language|null
Parameters
Name | Type | Default |
---|---|---|
$languageCode | string ornull |
null
|
Return types
Kirby\Cms\Language
ornull