PHP Interface BenConstable\Localize\Determiners\DeterminerInterface

Show file Open project: benconstable/laravel-localize-middleware

Public Methods

Method Description
determineLocale ( Illuminate\Http\Request $request ) : string Use the given request to determine what the application locale should be.
setFallback ( string $locale ) : BenConstable\Localize\Determiners\DeterminerInterface Set the fallback locale for this determiner.

Method Details

determineLocale() public method

Use the given request to determine what the application locale should be.
public determineLocale ( Illuminate\Http\Request $request ) : string
$request Illuminate\Http\Request
return string Locale name (en, es etc)

setFallback() public method

Set the fallback locale for this determiner.
public setFallback ( string $locale ) : BenConstable\Localize\Determiners\DeterminerInterface
$locale string
return BenConstable\Localize\Determiners\DeterminerInterface