level51 / silverstripe-fluent-autotranslate
使用Google Translate自动翻译的Silverstripe与Fluent模块
0.2.0
2024-06-27 00:00 UTC
Requires
- php: >=7.1
- ext-intl: *
- ext-json: *
- silverstripe/framework: ^4 || ^5
This package is auto-updated.
Last update: 2024-08-27 18:47:03 UTC
README
使用Google Cloud Translation自动翻译的Silverstripe与Fluent模块。
要求
- Silverstripe ^4 || ^5
- Fluent >=4
- PHP >= 7.1
- ext-json
安装
composer require level51/silverstripe-fluent-autotranslate
设置
定义Google Cloud Translation API的API密钥如下
Level51\Autotranslate\AutotranslateFieldExtension: google_cloud_translation_api_key: 'YOUR_API_KEY'
有关设置说明,请参阅https://cloud.google.com/translate/docs/setup。
维护者
- Level51 hallo@lvl51.de
禁用特定字段类型的扩展
Level51\Autotranslate\AutotranslateFieldExtension: class_blacklist: - SilverStripe\Forms\HTMLEditor\HTMLEditorField