process-drive / laravel-cloud-translation
1.0.0
2022-10-31 06:29 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-25 14:22:21 UTC
README
ProcessDrive laravel cloud translation
此包用于将您的本地化文件存储在数据库中并使用。然后您可以直接更新和存储语言。如果您想创建新语言,可以直接提及此包。它将翻译并存储值。
安装
在终端中运行此命令
composer require process-drive/laravel-cloud-translation
安装后
将服务提供者添加到config/app.php文件中
'providers' => [
ProcessDrive\LaravelCloudTranslation\CloudTranslationServiceProvider::class,
]
如果您未在项目中的工作表中添加,请运行以下命令或参考此链接:"https://laravel.net.cn/docs/9.x/queues"
php artisan queue:table
提及 .env
QUEUE_CONNECTION=database
运行迁移
php artisan migrate
在终端中运行此命令
php artisan trans:db
然后
php artisan serve
Go to this link: "http://127.0.0.1:8000/translation/index"
许可证
MIT
具有上下文菜单