OpenAI Translation
A Wordpress plugin that uses OpenAI to translate posts and pages
by Maxime Nicole · github.com/mnicole90/wordpress-openai-translation
★ 8stars
3composer installs
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mnicole90/wordpress-openai-translation/archive/refs/heads/main.zipAlso on Packagist as mnicole90/wordpress-openai-translation:
composer require mnicole90/wordpress-openai-translationFrom the readme
OpenAI Translation plugin for Wordpress
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 OPENAISECRET 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 OPENAITRANSLATIONVALIDATORto 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
Maxime Nicole -
License
Copyright 2023 Maxime Nicole
Licensed under
Read the full README on GitHub →