mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
201f43719b
Refs flarum/core#717.
11 lines
265 B
PHP
11 lines
265 B
PHP
<?php
|
|
|
|
use Illuminate\Contracts\Events\Dispatcher;
|
|
use Flarum\Event\ConfigureLocales;
|
|
|
|
return function (Dispatcher $events) {
|
|
$events->listen(ConfigureLocales::class, function(ConfigureLocales $event) {
|
|
$event->loadLanguagePackFrom(__DIR__);
|
|
});
|
|
};
|