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;
}