private function getTranslatedName($level, $locale)
    {
        if ($locale === 'auto') {
            $locale = null;
        }

        return $this->translator->get('log-viewer::levels.' . $level, [], $locale);
    }
private function getTranslatedName($level, $locale)
    {
        if ($locale === 'auto') {
            $locale = null;
        }

        return $this->translator->get('log-viewer::levels.' . $level, [], $locale);
    }
private function getTranslatedName ( $ level , $ locale ) { if ( $ locale === 'auto' ) { $ locale = null ; } return $ this -> translator -> get ( 'log-viewer::levels.' . $ level , [ ] , $ locale ) ; }
Translate a level.

@param  string       $level
@param  string|null  $locale

@return string
Translate a level .