public function names($locale = null)
    {
        $levels = self::all(true);

        array_walk($levels, function (&$name, $level) use ($locale) {
            $name = $this->getTranslatedName($level, $locale);
        });

        return $levels;
    }
public function names($locale = null)
    {
        $levels = self::all(true);

        array_walk($levels, function (&$name, $level) use ($locale) {
            $name = $this->getTranslatedName($level, $locale);
        });

        return $levels;
    }
public function names ( $ locale = null ) { $ levels = self :: all ( true ) ; array_walk ( $ levels , function ( & $ name , $ level ) use ( $ locale ) { $ name = $ this -> getTranslatedName ( $ level , $ locale ) ; } ) ; return $ levels ; }
Get translated levels.

@param  string|null  $locale

@return array
Get translated levels .