Locale¶
The LocaleServiceProvider manages the locale of an application.
Parameters¶
- locale: The locale of the user. When set before any request handling, it
defines the default locale (
enby default). When a request is being handled, it is automatically set according to the_localerequest attribute of the current route.
Services¶
- n/a
Registering¶
$app->register(new Mascot\Provider\LocaleServiceProvider());