ntriga/pimcore-deepl

在 Pimcore 项目中使用 Deepl 来翻译文档和对象。

11.0.2 2024-06-27 13:36 UTC

This package is auto-updated.

Last update: 2024-09-04 14:41:27 UTC


README

在 Pimcore 中使用 Deeple

特性

  • 对象: 将您的对象字段翻译成多种语言。

依赖项

安装

您可以通过 composer 安装此包

composer require ntriga/pimcore-deepl

将 Bundle 添加到 bundles.php

return [
    Ntriga\PimcoreDeepl\PimcoreDeeplBundle::class => ['all' => true],
];

将您的 Deepl API 密钥添加到 .env.local 文件

DEEPL_API_KEY=your-api-key

默认配置

该 Bundle 的默认配置可能如下所示

parameters:
    deepl_glossary_prefix: 'pimcore-deepl-prefix'
    deepl_source_lang: 'nl'
    deepl_target_langs:
        - 'fr'

    deepl_glossary:
        "default string":
            fr: "wanted translation"

进一步配置

有关设置更多信息,请查看 设置

更新日志

请参阅 更新日志 了解最近更改的信息。

致谢

许可协议

GNU 通用公共许可证版本 3 (GPLv3)。请参阅 许可文件 获取更多信息。