framework/extensions/lang-english/bootstrap.php

11 lines
266 B
PHP
Raw Normal View History

2015-09-25 14:07:00 +08:00
<?php
2015-10-07 20:37:44 +08:00
use Flarum\Event\ConfigureLocales;
2016-01-11 16:40:57 +08:00
use Illuminate\Contracts\Events\Dispatcher;
2015-09-25 14:07:00 +08:00
2015-10-07 20:37:44 +08:00
return function (Dispatcher $events) {
2016-01-11 16:40:57 +08:00
$events->listen(ConfigureLocales::class, function (ConfigureLocales $event) {
$event->loadLanguagePackFrom(__DIR__);
2015-09-25 14:07:00 +08:00
});
};