A translation can look polished and still be dangerous to apply. The application may preserve the words while quietly losing the most useful review artifact: what the person actually wrote.
Consider a synthetic event brief: “Please keep Room 204 available until Friday. The budget is $250. Do not confirm the booking until Maya approves.” The room, amount, deadline, and condition all matter. A translation belongs beside that source so someone can inspect the result before using it.
This walkthrough builds a safer interaction in React and TypeScript with Chrome’s Language Detector and Translator APIs. The companion lab includes a manual source-language selector, an availability check for the selected pair, cancellation, stale-result protection, and a separate acceptance action. It never submits a booking or sends the brief to a cloud model.
Separate detection from the translation decision
Language detection returns candidates.…