Feat[Experiment]: Add AI-Powered Content Translation - #747
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
1d27601 to
2cad063
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #747 +/- ##
=============================================
+ Coverage 80.18% 80.43% +0.25%
- Complexity 2526 2565 +39
=============================================
Files 106 110 +4
Lines 10240 10448 +208
=============================================
+ Hits 8211 8404 +193
- Misses 2029 2044 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
e4504fe to
34f442d
Compare
|
@yogeshbhutkar looks like a merge conflict to resolve to help keep this moving along |
1dad2d1 to
6702e62
Compare
|
Thank you, @jeffpaul. I've resolved the merge conflicts. This PR is ready for a test. |
6702e62 to
bf63f76
Compare
dkotter
left a comment
There was a problem hiding this comment.
Sorry for the delay in review here. Overall this looks really good and tested well. Have left a few comments but let me know if there's any questions.
- Updates E2E and unit tests to follow the new `minContentLength`
- Preserve inline HTML during translation - Move language definitions into the experiment - Align limits, metadata, and documentation - Support shimmer effects on highlighted text
6db9898 to
9e83e19
Compare
|
Thanks for the review, @dkotter. I’ve implemented the suggested changes. When you have a moment, please take another look at the PR. |
…he data improperly
…hat in multiple places
…t instead of the full content when processing to avoid things being skipped later. Update our output message to be more accurate. Add some A11Y improvements. Remove some unneeded types
What, Why, and How?
Closes #187
This PR adds a new Content Translation experiment that lets users translate post content directly from the editor. It introduces a backend ability,
ai/content-translation, to achieve this.The feature is needed so editors can generate translations without leaving the post editing flow. It supports common target languages, gates access through the experiment settings, checks provider support for text generation, validates the selected language, and requires the user to have edit permissions for the post being translated.
Future explorations:
Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5.5
Used for: Test suggestions and frequent AI-assisted code reviews.
Testing Instructions
Settings > AI.Screencast
screencast.mov
Changelog Entry