tomatophp/filament-translations-gpt
最新稳定版本:v4.0.0
Composer 安装命令:
composer require tomatophp/filament-translations-gpt
包简介
Translations Manager extension to use ChatGPT openAI to auto translate your __(), trans() fn
关键字:
README 文档
README
Filament Translations GPT
Translations Manager extension to use ChatGPT openAI to auto translate your __(), trans() fn
Screenshots
Installation
before install this package you need to have Translation Manager installed and configured
composer require tomatophp/filament-translations-gpt
after install your package please run this command
php artisan filament-translations-gpt:install
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(\TomatoPHP\FilamentTranslationsGpt\FilamentTranslationsGptPlugin::make())
Usage
now you need to add the following to your .env file:
OPENAI_API_KEY= OPENAI_ORGANIZATION=
now you need to clear you cache
php artisan config:clear
Publish Assets
you can publish config file by use this command
php artisan vendor:publish --tag="filament-translations-gpt-config"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-translations-gpt-lang"
Testing
if you like to run PEST testing just use this command
composer test
Code Style
if you like to fix the code style just use this command
composer format
PHPStan
if you like to check the code by PHPStan just use this command
composer analyse
Other Filament Packages
Checkout our Awesome TomatoPHP
统计信息
- 总下载量: 3.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-26


