mnicole90/wordpress-openai-translation
最新稳定版本:v1.1.0
Composer 安装命令:
composer require mnicole90/wordpress-openai-translation
包简介
A Wordpress plugin that uses OpenAI to translate posts and pages
README 文档
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
- 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
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-09