📝
article
github.com
·
November 9, 2026
translation_diff: re-translate only the sentences that changed
Edit one word in a 3,000-character product description and most translation APIs bill you for all 3,000 characters again. translation_diff splits the text into sentences, caches each one by content hash, and sends the provider only the sentences it hasn’t seen. Repeated blocks like a return policy get translated once across your whole catalog.
Read on github.com →