Skip to content

Commit

Permalink
Use translation extension (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 18, 2023
1 parent cc13a1e commit 94662bb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"clue/multicast-react": "^1.1",
"contributte/console": "^0.9",
"contributte/monolog": "^0.5",
"contributte/translation": "^2.0",
"cweagans/composer-patches": "^1.7",
"doctrine/orm": "2.15.*",
"evenement/evenement": "^3.0",
Expand All @@ -65,7 +66,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",
Expand Down
13 changes: 12 additions & 1 deletion src/DI/VieraExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

namespace FastyBird\Connector\Viera\DI;

use Contributte\Translation;
use Doctrine\Persistence;
use FastyBird\Connector\Viera;
use FastyBird\Connector\Viera\API;
Expand Down Expand Up @@ -46,7 +47,7 @@
*
* @author Adam Kadlec <[email protected]>
*/
class VieraExtension extends DI\CompilerExtension
class VieraExtension extends DI\CompilerExtension implements Translation\DI\TranslationProviderInterface
{

public const NAME = 'fbVieraConnector';
Expand Down Expand Up @@ -326,4 +327,14 @@ public function beforeCompile(): void
}
}

/**
* @return array<string>
*/
public function getTranslationResources(): array
{
return [
__DIR__ . '/../Translations/',
];
}

}

0 comments on commit 94662bb

Please sign in to comment.