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