ntriga/pimcore-gpt-translations

Use Chat GPT in your Pimcore project to translate documents and objects.

11.0.1 2024-07-02 10:22 UTC

README

Use GPT to translate in Pimcore

Features

  • Objects: Translate your objects' fields into multiple languages.

Dependencies

Installation

You can install the package via composer:

composer require ntriga/pimcore-gpt-translations

Add Bundle to bundles.php:

return [
    OpenAI\Symfony\OpenAIBundle::class => ['all' => true],
    Ntriga\PimcoreGPTTranslations\PimcoreGPTTranslationsBundle::class => ['all' => true],
];

Add your GPT API key to your .env.local file:

OPENAI_API_KEY=sk-you-openai-api-key

Default configuration

Default configuration for the bundle can look like this:

parameters:
    gtp_translations_source_lang: 'nl'
    gtp_translations_target_langs:
        - 'fr'

Further configuration

For more information about the setup, check Setup

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

GNU General Public License version 3 (GPLv3). Please see License File for more information.