-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67fc384
commit 1116256
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
*/ | ||
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<string> | ||
*/ | ||
public function getTranslationResources(): array | ||
{ | ||
return [ | ||
__DIR__ . '/../Translations/', | ||
]; | ||
} | ||
|
||
} |