diff --git a/extensions/lang-english/bootstrap.php b/extensions/lang-english/bootstrap.php index a941063c8..c8586cb9e 100644 --- a/extensions/lang-english/bootstrap.php +++ b/extensions/lang-english/bootstrap.php @@ -1,10 +1,16 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ -return function (Dispatcher $events) { - $events->listen(ConfigureLocales::class, function (ConfigureLocales $event) { - $event->loadLanguagePackFrom(__DIR__); - }); -}; +use Flarum\Extend; + +return [ + new Extend\Locale(__DIR__) +];