Figma plugin · Open source

Seeing which layouts break in Hindi before the developer does

Checking a screen in another language meant copying text into a translator and pasting it back, layer by layer. I designed and built a free Figma plugin that copies the frame, translates every text layer into 40+ languages, swaps in a font that can draw the script, and reports the text that no longer fits.

My role
Designer and builder
Worked with
Solo project
When
2026
Status
Open source (MIT), submitted to Figma Community

My contribution: All of it: the problem, the choice of translation engine, the panel and report design, and the code.

ProblemLocalisation bugs, like a clipped button, usually surface in development, after the design is handed off.
What changedOne click makes a translated copy beside the original, with a report of overflow, font swaps and skipped text.
ProofFree to run, open source, tested on my own portfolio in Malayalam and Chinese. Community numbers to follow.
An English sign-in screen and its Hindi copy
The copy keeps the layout and swaps to a Devanagari font; the English screen stays as it was.
Context

Localisation is a layout problem first

At a services company, client products often ship in more than one language. Translated text is usually longer or taller than English, and non-Latin scripts need their own fonts, so labels wrap, headings clip and cards overflow. Those problems tend to be found in development or QA, when fixing them costs more. I wanted a check designers could run in a minute, on a real file, for free.

A designer at a desk with a large monitor showing mobile layouts and a tablet beside it
A designer checking mobile layouts before handoff. Scene generated with AI.

Who uses it

WhoWhy they use itWhere and when
Product designers at services companiesTo check a screen in another language before handoff, when client products ship in several languages.In Figma, on real files shared with clients.
A selected English case study header, then its Malayalam copy appearing beside it
One run on my own portfolio: the original stays untouched, and the Malayalam copy appears beside it.
Problem

Four reasons designers skip the check

  • Manual work scales badly. A 10-screen flow in 3 languages is 30 copies, each pasted layer by layer.
  • Good engines need a paid key. Google and DeepL need an API key before the first run.
  • Non-Latin scripts fail silently. Hindi set in a Latin font renders as empty boxes, with no message saying why.
  • Overwriting is risky. A tool that edits the source frame can damage a file shared with a client.
Hindi text in Inter showing empty boxes, beside the same text in Noto Sans Devanagari
The text is translated in both; only the right one has a font that can draw it.

Why it was worth solving

A clipped button found in development or QA costs a design change, a code change and another review. Found before handoff, it's one edit in Figma. Designers skip the check because it's slow, paid or risky, so the bugs ship.

Decision 1 · engine

A free engine over a better one

OptionCostTrade-off
Google or DeepL APIPaid keyBest quality, but a key stops most designers from installing
Unofficial Google endpointsFreeAgainst Google's terms; can break at any time
Self-hosted LibreTranslateFree, needs a serverKept as an optional engine; too much setup as the default
MyMemoryFree, no signupChosen: 5,000 characters a day, 50,000 with any email

I accepted lower quality for zero setup, because the plugin's job is a design check, not final copy. To stretch the limit, repeated strings are sent once (forty "Book now" buttons become one request) and every translation is cached, so a rerun is free.

Quota counter: 4,043 of 5,000 characters used today
4,043 of the anonymous 5,000 characters used.
Experience translated into Chinese as user experience instead of work experience
The cost of a free engine: "Experience" on my homepage came back as user experience, not work experience.
A string with a placeholder, a brand name and an email, and the masked version sent to the engine
Placeholders, URLs, emails and "don't translate" terms are swapped for tokens before sending and put back after. Output of the plugin's own masking code.
Decision 2 · safety

A copy, never the original

The plugin duplicates each selected frame, places it to the right and names it like Login — Hindi (hi). Translating in place was simpler to build, but one bad run on a shared client file would end trust in the tool. Instances stay attached.

If the daily limit runs out mid-run, what was translated is kept, the copy is marked — partial, and the next run finishes from the cache.

The Chinese copy of my homepage on the canvas, its frame name ending in partial
A real run on my homepage that stopped early: the work done was kept and labelled.
Report: done with gaps, daily limit reached, partial result kept
What the report says in that case. Rendered from the plugin's panel with sample numbers.
Decision 3 · the report

Show the breakage instead of hiding it

I could have shrunk text to fit. I chose to flag it. After each run the report lists layers translated and skipped, font swaps, text that overflows a fixed-size box, and mixed-style text that was simplified. A clipped card is the bug a designer needs to see before handoff; hiding it would remove the most useful output.

Report listing three cards whose text overflows their fixed-size boxes
The report names each overflowing layer. Sample numbers, real panel.
Malayalam text running past the bottom of three fixed-height cards
The bug it points to, from the Malayalam run: text past the bottom of all three cards.
What didn't work

Four things I had to take back

  • Keeping inline styles. Word order changes between languages, so bold and link ranges landed on the wrong words. Mixed-style text now takes its first style and is flagged.
  • Translating text as-is. Placeholders, URLs and brand names came back translated or broken. They are now masked, plus a "don't translate" list.
  • One font for every language. Hindi, Japanese and Arabic showed empty boxes. Each script now swaps to a matching Noto family, keeping the weight.
  • Full RTL mirroring. Mirroring a layout is a design decision, not something a plugin should guess. Arabic, Persian, Urdu and Hebrew only get right-aligned text.
Table of languages and the Noto font each one is swapped to
The font swap, by script. Weight carries over; Regular is the fallback.
Final design

One panel, one click

From and To, the engine, an optional email and three options are remembered between runs, so the second run needs only the Translate button. A rerun of the same screen sends nothing.

BeforeAfter
Per screen, per languageCopy and paste, layer by layerOne click
Source frameEdited by handNever touched
Hindi, Japanese, ArabicEmpty boxes in a Latin fontMatching Noto font, same weight
Clipped textFound in development or QAListed in the report
The plugin panel with languages, engine, email, options, don't translate list and quota
The panel, with remembered choices and the "don't translate" list.
Report for a rerun: 0 characters sent, 52 from cache
A rerun: 0 characters sent, every string from the cache. Sample numbers.
English case study header beside its Malayalam copy, 955 px versus 1,358 px tall
From the real run: the Malayalam header ends 403 px lower (+42%), and the whole article grows 13%.

Figma plugins can't call the network from the canvas, so requests live in the panel and file changes on the canvas.

Two-sided architecture: canvas code clones and writes, panel code masks and translates
Canvas side and panel side, and the six steps between them.
Outcome

Works, free, and waiting on real use

The plugin translates into 40+ languages, including Devanagari, CJK and Arabic scripts, at no cost. It is open source and submitted to Figma Community. So far:

MeasureWhy it mattersNow
Community installs and savesWhether other designers find it usefulNot live yet
Screens translated on real filesProof it holds up outside a test2, on my portfolio
Overflow caught before handoffThe core value3 cards in the Malayalam run
Runs that stopped earlyWhether the free limit is enough1, kept as partial
Reflection

The report mattered more than the translation

The most useful output turned out to be the report, not the translation. Next time I'd test on a client file before publishing, not just my own portfolio, and I'd flag short, ambiguous labels like "Experience" for review, since a one-word label is where a free engine is most likely to pick the wrong meaning.

Get it on GitHub

Panel states marked "sample numbers" are rendered from the plugin's own interface code; canvas images are from real runs.

More case studies