public function translateRoute($routeName, $attributes = [])
    {
        if (empty($attributes)) return null;

        $transAttributes = $this->fireEvent($this->getCurrentLocale(), $routeName, $attributes);

        if ( ! empty($transAttributes) && $transAttributes !== $attributes)
            return route($routeName, $transAttributes);

        return null;
    }
public function translateRoute($routeName, $attributes = [])
    {
        if (empty($attributes)) return null;

        $transAttributes = $this->fireEvent($this->getCurrentLocale(), $routeName, $attributes);

        if ( ! empty($transAttributes) && $transAttributes !== $attributes)
            return route($routeName, $transAttributes);

        return null;
    }
public function translateRoute ( $ routeName , $ attributes = [ ] ) { if ( empty ( $ attributes ) ) return null ; $ transAttributes = $ this -> fireEvent ( $ this -> getCurrentLocale ( ) , $ routeName , $ attributes ) ; if ( ! empty ( $ transAttributes ) && $ transAttributes !== $ attributes ) return route ( $ routeName , $ transAttributes ) ; return null ; }
Translate route.

@param  string  $routeName
@param  array   $attributes

@return string|null
Translate route .