Skip to content

Kirby 5.0.4

$kirby->detectedLanguage()

Detect the preferred language from the visitor object

$kirby->detectedLanguage(): Kirby\Cms\Language|null

Return types

Kirby\Cms\Languageornull

This method modifies the existing $app object it is applied to and returns it again.

Parent class

Kirby\Cms\App