diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 5260bee..716e14f 100755 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -14,14 +14,6 @@ */ class ServiceProvider extends LaravelServiceProvider { - /** - * Register the service provider. - */ - public function register(): void - { - $this->registerTranslations(); - } - /** * Bootstrap the application events. */ @@ -30,6 +22,8 @@ public function boot(): void Macros::register(); $this->bootRules(); + + $this->bootTranslations(); } /** @@ -49,9 +43,9 @@ private static function getRule($rule, $parameters): mixed } /** - * Register the package translations. + * Boot the package translations. */ - private function registerTranslations(): void + private function bootTranslations(): void { $this->loadTranslationsFrom($this->srcDir('lang'), 'docs');