Fix button labels that spill out of their box once translated into longer languages
A label that fits in English becomes much longer in German or Finnish, runs out of its button or is cut mid-word. This entry shows how to make the AI test every label against its box, shrink the text only as far as is still readable, and report the ones that need a human decision.
Why this works
Text length is the thing that changes between languages, and the box does not change with it. Measuring each label against its box ahead of time turns a surprise on a player's screen into a list the builder can fix.
When not to use it
Skip it when the button can grow with its text, or when it shows only an icon. A shrunken label below a readable size is worse than a bigger button, so change the layout instead.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- A diagram of every state
- 36 lines of example code with 4 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Fix button labels that spill out of their box once translated into longer languages" (read_entry german-button-text-does-not-fit) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP