Five Prompt Templates for Localizing JSON, SRT Subtitles and Bilingual Docs with LLMs
A developer guide on DEV Community describes common problems when using ChatGPT, Claude, or Gemini for localization, including mangled variables like {limit}, UI text overflow, and stiff translations with inconsistent pronouns. It proposes a five-part prompting structure called R.C.A.G.O., covering role, context, audience and register, and guardrails. The article offers production-ready prompts for JSON i18n files, timecode-safe SRT subtitle translation, and polishing translated prose. It also includes a before-and-after example showing a naive translation breaking a placeholder and overflowing a button, which the structured prompt avoids. Additional prompts cover a factual auditor that checks translations against the source for omissions, hallucinations, and negation errors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in