mnicole90/wordpress-openai-translation

A Wordpress plugin that uses OpenAI to translate posts and pages

v1.1.0 2023-05-09 07:17 UTC

This package is not auto-updated.

Last update: 2024-05-08 10:29:41 UTC


README

This plugin uses the OpenAI API to translate your posts and pages into other languages.

This plugin requires PHP 8.1 or greater to run.

Current version: 1.1.0

Installation

  1. Download the plugin into your wp-content/plugins directory.
  2. Activate the plugin in your Wordpress admin panel.

Configuration

You have the choice to configure the plugin:

  1. Add the environment variable OPENAI_SECRET with your OpenAI API secret key.
  2. Configure the plugin in the "OpenAI Translation" of the "Settings" section of your Wordpress admin panel.

Using SymfonyLocaleValidator component

If you want to use the Symfony Locale Validator, in your terminal run composer install in the plugin directory and set the environment variable OPENAI_TRANSLATION_VALIDATORto symfony or configure it in the plugin settings page.

Usage

  1. Go on the page or post you want to translate.
  2. Click on the "Translate" button in the top right corner.
  3. Click on the language you want to translate to.
  4. Wait for the translation to be generated.
  5. Click on the "Save" button to save the translation.

Authors

License

Copyright 2023 Maxime Nicole

Licensed under the MIT License: http://opensource.org/licenses/MIT