public function findTranslatedRouteByPath($path, $locale)
    {
        // check if this url is a translated url
        foreach ($this->translatedRoutes as $route) {
            if ($this->translate($route, $locale) == rawurldecode($path))
                return $route;
        }

        return false;
    }
public function findTranslatedRouteByPath($path, $locale)
    {
        // check if this url is a translated url
        foreach ($this->translatedRoutes as $route) {
            if ($this->translate($route, $locale) == rawurldecode($path))
                return $route;
        }

        return false;
    }
public function findTranslatedRouteByPath ( $ path , $ locale ) { // check if this url is a translated url foreach ( $ this -> translatedRoutes as $ route ) { if ( $ this -> translate ( $ route , $ locale ) == rawurldecode ( $ path ) ) return $ route ; } return false ; }
Returns the translated route for the path and the url given.

@param  string  $path    -  Path to check if it is a translated route
@param  string  $locale  -  Language to check if the path exists

@return false|string
Returns the translated route for the path and the url given .