TranslatorServiceProvider.php
Translator Service Provider
Registers the Translator service in the DI container and configures the active locale from the user's app_language setting.
PHP version 8.1
Tags
Table of Contents
Classes
- TranslatorServiceProvider
- Registers the Translator as a singleton and sets the active locale from the database during the boot phase.