Fenos\Notifynder\Translator\TranslatorManager::getLanguage PHP Method

getLanguage() public method

Get selected language of translations.
public getLanguage ( $language ) : mixed
$language
return mixed
    public function getLanguage($language)
    {
        $translations = $this->getTranslations();
        if (array_key_exists($language, $translations)) {
            return $translations[$language];
        }
        $error = 'Language Not Found';
        throw new NotificationLanguageNotFoundException($error);
    }