The LocaleServiceProvider manages the locale of an application.
en
by default). When a request is being
handled, it is automatically set according to the _locale
request
attribute of the current route.1 | $app->register(new Silex\Provider\LocaleServiceProvider());
|