Use an AI Code Editor to Build the Core Logic
Use Cursor to build a small translator that accepts stable keys, source text, context, locale, glossary, and protected tokens, then returns structured output with confidence and notes. Start with test fixtures rather than the full site.
Implement a localization function for [file format]. Input: key, source locale, target locale, source text, product context, glossary, do not translate terms, and protected placeholders or markup. Return valid structured output with translation, confidence, and review reason. Preserve every key and token exactly and add tests for plurals, interpolation, HTML, ICU syntax, empty values, and length constraints.




