From ba479dd979301031fe652b24ac79c2107f1d87ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Lopes?= Date: Wed, 17 Sep 2025 13:09:41 -0300 Subject: [PATCH] fix(translations): fixing bug in boot translations --- src/ServiceProvider.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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');