src/Mcamara/LaravelLocalization/LaravelLocalization.php
public function transRoute($routeName)
    {
        if (!\in_array($routeName, $this->translatedRoutes)) {
            $this->translatedRoutes[] = $routeName;
        }

        return $this->translator->trans($routeName);
    }
public function transRoute($routeName)
    {
        if (!\in_array($routeName, $this->translatedRoutes)) {
            $this->translatedRoutes[] = $routeName;
        }

        return $this->translator->trans($routeName);
    }
Translate routes and save them to the translated routes array (used in the localize route filter).

@param string $routeName Key of the translated string

@return string Translated string