PHP Interface BenConstable\Localize\Determiners\DeterminerInterface

Afficher le fichier Open project: benconstable/laravel-localize-middleware

Méthodes publiques

Méthode 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 méthode

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

setFallback() public méthode

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