mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 22:03:27 +08:00
re-using symfony translator
This commit is contained in:
parent
6280fb2498
commit
93aa3d77b5
|
@ -16,6 +16,7 @@ use Flarum\Foundation\AbstractServiceProvider;
|
|||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\Translation\Translator as TranslatorContract;
|
||||
use Symfony\Component\Translation\MessageSelector;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
|
||||
class LocaleServiceProvider extends AbstractServiceProvider
|
||||
{
|
||||
|
@ -48,6 +49,7 @@ class LocaleServiceProvider extends AbstractServiceProvider
|
|||
});
|
||||
$this->app->alias('translator', Translator::class);
|
||||
$this->app->alias('translator', TranslatorContract::class);
|
||||
$this->app->alias('translator', TranslatorInterface::class);
|
||||
}
|
||||
|
||||
private function getDefaultLocale(): string
|
||||
|
|
Loading…
Reference in New Issue
Block a user