Fall through to next provider when translation equals source text

FixTranslateService
Shipped
April 17, 2026 at 3:29 PM UTC
Author
Kamo
Commit
8607e7c

Bergamot was returning the source text unchanged for single-word nav items, acronym phrases (API, CRM), and compound words (Change Log) while reporting success (fallback=0). The router now treats same-value results as a signal to try the next provider (e.g. LibreTranslate). Also fixes fallbackCount in batchTranslate to accurately count keys where the translation equals the source, so callers can detect untranslated content.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing