LocaleManager
class LocaleManager (View source)
Sets the gettext locale and text domain for a supported locale from the locale directory.
Methods
__construct(array $supportedLocales, string $localeDirectory, LoggerInterface|null $logger = null)
LocaleManager constructor.
void
setLocale(string $locale)
Sets the locale for the application.
Details
__construct(array $supportedLocales, string $localeDirectory, LoggerInterface|null $logger = null)
LocaleManager constructor.
void
setLocale(string $locale)
Sets the locale for the application.