basilicom / pimcore-field-translator-bundle
一个用于为Pimcore后端字段提供翻译辅助程序的Pimcore组件。
v0.1.2
2021-01-08 08:09 UTC
Requires
- php: >=7.3
- google/cloud-translate: ^1.8
- pimcore/pimcore: >=6.0 <7.0
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-09-20 00:05:57 UTC
README
用例/摘要
翻译组件将自动扩展Pimcore的本地化字段。
为了翻译字段,在查看数据对象中的字段时,将获得一个额外的“翻译”选项。
每种翻译都需要手动为每种语言和字段触发。这将在不久的将来得到优化。
安装
- 使用
composer require basilicom/field-translator-bundle
安装组件 - 执行
bin/console pimcore:bundle:enable BasilicomFieldTranslatorBundle
配置
您可以根据以下方式配置翻译策略
basilicom_field_translator:
strategy: "DeepL" # available GoogleTranslate|DeepL
config:
apiKey: "<- the API key->"
作者: Alexander Heidrich (Basilicom GmbH)
许可: GPL v3