OpenAI Translation WP Registry grade B. Medium-severity findings · 1 findingWP RegistryMedium-severity findings · 1 findingOpen the reportB
A Wordpress plugin that uses OpenAI to translate posts and pages
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mnicole90/wordpress-openai-translation/archive/refs/heads/main.zipOn Packagist as mnicole90/wordpress-openai-translation:
composer require mnicole90/wordpress-openai-translationOpenAI 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
- Download the plugin into your
wp-content/pluginsdirectory. - Activate the plugin in your Wordpress admin panel.
Configuration
You have the choice to configure the plugin:
- Add the environment variable
OPENAI_SECRETwith your OpenAI API secret key. - 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
- Go on the page or post you want to translate.
- Click on the "Translate" button in the top right corner.
- Click on the language you want to translate to.
- Wait for the translation to be generated.
- Click on the "Save" button to save the translation.
Authors
- Maxime Nicole - https://linkedin.com/in/mnicole
License
Copyright 2023 Maxime Nicole
Licensed under the MIT License: http://opensource.org/licenses/MIT
Releases
2 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.