diff --git a/composer.json b/composer.json index e839423..4255f85 100644 --- a/composer.json +++ b/composer.json @@ -37,6 +37,9 @@ }, "require": { "php": ">=8.1.0", + "contributte/console": "^0.9", + "contributte/monolog": "^0.5", + "contributte/translation": "^2.0", "cweagans/composer-patches": "^1.7", "fastybird/bootstrap-library": "dev-main", "fastybird/exchange-library": "dev-main", @@ -56,7 +59,6 @@ }, "require-dev": { "brianium/paratest": "^7.3", - "contributte/translation": "^2.0", "dg/bypass-finals": "^1.4", "infection/infection": "^0.27", "orisai/coding-standard": "^3.2", diff --git a/src/DI/TriggersExtension.php b/src/DI/TriggersExtension.php index a075e24..520f0d1 100644 --- a/src/DI/TriggersExtension.php +++ b/src/DI/TriggersExtension.php @@ -15,6 +15,7 @@ namespace FastyBird\Module\Triggers\DI; +use Contributte\Translation; use Doctrine\Persistence; use FastyBird\Library\Bootstrap\Boot as BootstrapBoot; use FastyBird\Module\Triggers\Commands; @@ -46,7 +47,7 @@ * * @author Adam Kadlec */ -class TriggersExtension extends DI\CompilerExtension +class TriggersExtension extends DI\CompilerExtension implements Translation\DI\TranslationProviderInterface { public const NAME = 'fbTriggersModule'; @@ -297,4 +298,14 @@ public function afterCompile(PhpGenerator\ClassType $class): void ); } + /** + * @return array + */ + public function getTranslationResources(): array + { + return [ + __DIR__ . '/../Translations/', + ]; + } + }