Translation visualizer
A stress-testing pipeline to preview translations and catch accessibility and layout issues before development.
- ROLE
- Content Designer
- Coverage
- 8 locales
- Status
- Proof-of-concept prototype
- Tech stack
- Figma, Python, Claude, GitHub Actions, Streamlit, Internal String Management Platform
Problem
Localization was treated as a downstream QA step rather than part of the design process. Without a way to validate content across languages early, text overflow and layout issues surfaced after designs were finalized, creating avoidable rework.
How might we
Enable teams to preview designs in different languages, catch translation errors early, and fix issues before launch?
Solution
I designed and built an AI-powered visualizer that puts English copy into a screen and previews eight locales in the same layout. That moved translators and language managers upstream, into the design process, so we could all catch errors in real time.
Current workflow
Suggested workflow
From input to report
Input
I uploaded a CSV file with the English source text and translations for 8 locales.
Input Validate
I wrote the Python script that checks each translation against hard rules. Each check has a clear right or wrong answer. Eg: if the German string is longer than the limit, flag it.
import reBrings in Python's tool for finding text patterns, so I can pick out placeholders like {amount}.
PLACEHOLDER = re.compile(r"\{[a-z_]+\}")Describes what a placeholder looks like: any word inside curly braces, such as {amount} or {date}.
def check_string(source, translation, char_limit):One reusable check. It takes the English text, the translation, and the space the translation has to fit in.
issues = []Starts an empty list to collect any problems this string has.
if not translation.strip():Asks: is the translation blank or just spaces?
issues.append(("missing", "critical"))If yes, flag it as a missing translation, marked critical.
if len(translation) > char_limit:Asks: is the translation longer than the design can fit?
issues.append(("char_limit", "high"))If yes, flag it as an overflow, marked high. This is the bug that broke the German layout.
if set(PLACEHOLDER.findall(source)) != set(PLACEHOLDER.findall(translation)):Compares the {slots} in the English against the {slots} in the translation.
issues.append(("placeholder_mismatch", "critical"))If they don't match, flag it as critical. A dropped {amount} means no number shows up on screen.
return issuesHands back the list of problems. An empty list means the string passed.
The check, line by line Validate AI review
The Claude API, guided by our voice, tone and style guide checks language quality.
AI review Preview interface
Streamlit displays the results in a preview and Figma provides the design context.
Preview interface QA report
Python generates a QA report to flag issues, severity levels and suggested fixes.
QA report
Trade-offs
I weighed trade-offs to decide which tools to use for each task.
Used Python over AI to enforce fixed rules
A German string that overflows its button has one right answer. It needs enforcing, not interpreting.
Cost
I maintain the rules myself, and a script never hallucinates.
Fed the pipeline a CSV, not a live hookup
Same file in, same report out. No waiting on platform access to prove the workflow.
Cost
Someone still exports the file by hand.
Pulled translators into design, not after launch
Catching a broken Turkish layout while the design is open beats catching it after it ships.
Cost
More coordination upfront, traded against the three-day QA scramble.
Checked AI two ways: golden set for titles, style guide for QA
Generated titles are open-ended, so I graded them against approved examples and tagged every failure. QA output has a defined shape, so the model checks our style guide and a person approves.
Cost
Two quality methods to maintain instead of one.
Impact
80%
reduction in QA time
- 2,481
- strings checked
- 32
- issues caught
- 8
- locales previewed