diff --git a/src/Doctum.php b/src/Doctum.php index f6a2755f..50a0a511 100644 --- a/src/Doctum.php +++ b/src/Doctum.php @@ -195,6 +195,8 @@ class Doctum implements ArrayAccess private $base_url = null; /** @var string|null */ private $favicon = null; + /** @var string */ + private $language = 'en'; /** * @var array|null @@ -362,7 +364,7 @@ public function offsetGet($offset) private function getLanguageFromConfig(): string { /** @var string $language */ - $language = $this->config['language'] ?? 'en'; + $language = $this->config['language'] ?? $this->language; return $language; }