Method | Description | |
---|---|---|
getCurrentLocale ( ) : string | Get the current locale. | |
getDefaultLocale ( ) : string | Get the default locale. | |
getSupportedLocales ( ) : Arcanedev\Localization\Entities\LocaleCollection | Return an array of all supported Locales. |
Method | Description | |
---|---|---|
getLocalizedRedirect ( string $locale ) : Illuminate\Http\RedirectResponse | null | Get the redirection response. | |
hideDefaultLocaleInURL ( ) : boolean | Hide the default locale in URL ?? | |
isDefaultLocaleHidden ( string | null $locale ) : boolean | Check is default locale hidden. | |
makeRedirectResponse ( string $url, integer $code = 302 ) : Illuminate\Http\RedirectResponse | Make a redirect response. |
public getCurrentLocale ( ) : string | ||
return | string |
public getDefaultLocale ( ) : string | ||
return | string |
protected getLocalizedRedirect ( string $locale ) : Illuminate\Http\RedirectResponse | null | ||
$locale | string | |
return | Illuminate\Http\RedirectResponse | null |
public getSupportedLocales ( ) : Arcanedev\Localization\Entities\LocaleCollection | ||
return | Arcanedev\Localization\Entities\LocaleCollection |
protected hideDefaultLocaleInURL ( ) : boolean | ||
return | boolean |
protected makeRedirectResponse ( string $url, integer $code = 302 ) : Illuminate\Http\RedirectResponse | ||
$url | string | |
$code | integer | |
return | Illuminate\Http\RedirectResponse |