Repository navigation
First release under the name translation_diff (formerly deepl_diff).
Translation cache for Ruby: text is split into sentences, each sentence is cached by content, and only the sentences that changed are sent to the provider.
- Six providers: DeepL, Google Cloud Translation, Azure AI Translator, ModernMT, LibreTranslate, Amazon Translate, plus a base class for your own.
- Cache and rate limit in Redis or in your own database via ActiveRecord (
rails g translation_diff:install). - HTML-aware,
class="notranslate"support, strings / arrays / nested hashes in the same shape. preview, isolatedcontext, instrumentation, shipped language data with validation.
Upgrading from deepl_diff: every cache key changes. See Former name and upgrading and the CHANGELOG.