framework/facades/Route.php
public static function to($path)
    {
        $currentLanguage = \Translation::getLanguage();
        if (\Translation::getDefaultLanguage() === $currentLanguage) {
            $currentLanguage = '';
        } else {
            $currentLanguage = '/'.$currentLanguage;
        }
        return $currentLanguage.$path;
    }
public static function to($path)
    {
        $currentLanguage = \Translation::getLanguage();
        if (\Translation::getDefaultLanguage() === $currentLanguage) {
            $currentLanguage = '';
        } else {
            $currentLanguage = '/'.$currentLanguage;
        }
        return $currentLanguage.$path;
    }
public static function to ( $ path ) { $ currentLanguage = \ Translation :: getLanguage ( ) ; if ( \ Translation :: getDefaultLanguage ( ) === $ currentLanguage ) { $ currentLanguage = '' ; } else { $ currentLanguage = '/' . $ currentLanguage ; } return $ currentLanguage . $ path ; }
Append with language

@param string $path
@return string
Append with language