Give the translator agent more context about edits

AI-generated summary

mbauman shares feedback regarding the site’s automatic translation feature, specifically concerning how edits are handled. While users generally find the translation quality adequate, they report that making an edit triggers a complete retranslation of the entire post rather than updating only the changed segments. This lack of “lexical reproducibility” causes inconsistencies, particularly when a previously translated passage is quoted elsewhere, making it difficult to track correspondence between versions.

The proposal suggests implementing a distinct prompt for re-translations following edits. Instead of simply translating the diff, the system should provide the translation agent with the original translated text and instruct it to apply the specific changes made by the user. This approach aims to maintain consistency in translations while accommodating updates.

Some feedback on translations from our site:

I’ve been finding the translation feature very handy.
The quality of translations from Japanese is perfectly adequate for practical use.

However, when you make an edit, the entire text gets retranslated rather than just the changes, leaving almost no lexical reproducibility in the results.
If a translated passage is quoted elsewhere, retranslation can make the correspondence between versions unclear.

It’d be nice to use a distinct prompt for re-translations after edits — obviously you don’t just want to translate the diff, but I’m sure the agent could do quite well if you tell it what the original was and to make the same change.