KamoCRM

Guard ampersands for every spelling of Spanish, keyed on the resolved language

FixTranslateService
Shipped
September 28, 2026 at 6:36 PM UTC
Author
Kamo
Commit
443a427

guardAmpersands compared the caller's raw targetLang with {"es"}, so "ES", "es-419" or "es_MX" reached the same en->es model without the guard and came back with a quote or a truncation for "&" (SP99 final review M-4). It now takes the code sent to LibreTranslate (resolveCode) and compares its primary language subtag, lower case. "et" and other languages are untouched.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing