public function sanitizeLanguage($language)
    {
        if ( 0 === count($this->languages) ) {
            throw new RuntimeException('Polyglot features no supported languages.');
        }

        if ( ! $this->isSupported($language) ) {
            $language = $this->getFallbackLanguage();
        }

        return $language;
    }