Email template translation that keeps merge tags and links intact
Translates transactional and marketing email templates while leaving merge tags, variables, links and code untouched, adjusting word order around variables so sentences stay grammatical. Use it before sending order, password, welcome or newsletter emails in a second language, so no customer receives a broken tag or a garbled greeting.
The output this prompt produced, unedited.
The prompt
What to give
Source and target language: [e.g. English to Gujarati]
Templates: [paste subject line, preview text and body for each, with tags as they appear, e.g. {{first_name}}, %ORDER_ID%, [[link]]]
Tag syntax used: [e.g. double curly braces]
What each variable contains: [e.g. {{first_name}} is a first name, {{amount}} is a number with currency]
Subject line and preview text limits: [characters]
Tone and form of address: [e.g. polite plural form, or friendly singular]
Checklist for every template
Every tag, link, HTML element and code fragment is copied exactly, character for character, never translated.
The count of each tag in the target equals the source.
Word order is changed around tags where the target grammar needs it, and case or gender endings are avoided where a variable value cannot be known.
Greetings still read correctly if a name tag is empty; suggest a fallback value.
Numbers, dates and currency follow the target locale only where the text is not a variable.
Subject lines and preview text stay within their limits.
Legal footer and unsubscribe lines are translated in full, never shortened.
Output format
Each template translated, in the same layout as the source.
| Template | Tag | Count in source | Count in target | Match |
| Template | Sentence | Grammar change around a tag | Reason |
Suggested fallback values for each tag that may be empty.
Guardrails
If a sentence cannot be grammatical with the tag where it is, rewrite the sentence, not the tag, and flag it.
Never merge or split tags, change their case, or add spaces inside them.
Copy the prompt and paste it into Gemini, then set the aspect ratio to 3:4. No reference photo is needed for this one.
The prompt is written in Markdown with each part under its own heading, which is what the copy action hands over. Change one section at a time, keeping the rest intact, so you can tell which change did the work.