diff --git a/stubs/extension/src/ServiceProvider.php b/stubs/extension/src/ServiceProvider.php index e62608409..dc71b1235 100644 --- a/stubs/extension/src/ServiceProvider.php +++ b/stubs/extension/src/ServiceProvider.php @@ -1,9 +1,7 @@ extend( - new ForumAssets([ - __DIR__.'/../js/dist/extension.js', - __DIR__.'/../less/extension.less' - ]), + $this->extend([ + (new Extend\Locale('en'))->translations(__DIR__.'/../locale/en.yml'), - (new Locale('en'))->translations(__DIR__.'/../locale/en.yml'), - - new ForumTranslations([ - // Add the keys of translations you would like to be available - // for use by the JS client application. - ]), - ); + (new Extend\ForumClient()) + ->assets([ + __DIR__.'/../js/dist/extension.js', + __DIR__.'/../less/extension.less' + ]) + ->translations([ + // Add the keys of translations you would like to be available + // for use by the JS client application. + ]) + ]); } /**