protected function registerLanguage()
    {
        $this->app->singleton(Language::class, function ($app) {
            $repository = new Language;

            return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']);
        });

        $this->app->alias(Language::class, 'intl.language');
    }
protected function registerLanguage()
    {
        $this->app->singleton(Language::class, function ($app) {
            $repository = new Language;

            return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']);
        });

        $this->app->alias(Language::class, 'intl.language');
    }
protected function registerLanguage ( ) { $ this -> app -> singleton ( Language :: class , function ( $ app ) { $ repository = new Language ; return $ repository -> setLocale ( $ app [ 'config' ] [ 'app.locale' ] ) -> setFallbackLocale ( $ app [ 'config' ] [ 'app.fallback_locale' ] ) ; } ) ; $ this -> app -> alias ( Language :: class , 'intl.language' ) ; }
Register the language repository.

@return void
Register the language repository .