OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
21
app/Core/i18n/LanguageServiceProvider.php
Normal file
21
app/Core/i18n/LanguageServiceProvider.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\i18n;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class LanguageServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->singleton(\Leantime\Core\Language::class, function () {
|
||||
return new \Leantime\Core\Language;
|
||||
});
|
||||
$this->app->alias(\Leantime\Core\Language::class, 'translator');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user