Method |
Description |
|
findTranslatedRouteByPath ( string $path, string $locale ) : string | false |
Returns the translated route for the path and the url given. |
|
getCurrentRoute ( ) : string |
Get current route. |
|
getRouteNameFromPath ( string $uri, string $locale ) : false | string |
Returns the translation key for a given path. |
|
getTranslatedRoute ( string $baseUrl, array | false &$parsedUrl, string $defaultLocale, Arcanedev\Localization\Entities\LocaleCollection $supportedLocales ) : string | false |
Get the translated route. |
|
getTranslatedRoutes ( ) : array |
Get translated routes. |
|
getUrlFromRouteName ( string $locale, string $defaultLocale, string $transKey, array $attributes = [], boolean | false $defaultHidden = false ) : string |
Get URL from route name. |
|
hasCurrentRoute ( ) : boolean |
Check if has current route. |
|
hasTranslation ( string $key, string $locale = null ) : boolean |
Determine if a translation exists. |
|
setCurrentRoute ( false | string $currentRoute ) : self |
Set the current route. |
|
trans ( string $route, string | null $locale = null ) : string |
Translate routes and save them to the translated routes array (used in the localize route filter). |
|