Prompt
my localization tool is causing broken UI, what should I check
Latest observation
Nov 20, 2026
OpenAI APIWeb search: off
If a localization tool is breaking your UI, check these first:
-
String length expansion
- Translations are often longer than the source text.
- Look for clipped labels, overflowing buttons, misaligned layouts, and truncated placeholders.
- Check any UI that assumes fixed widths/heights.
-
Unsupported characters / font coverage
- Verify your fonts support all target languages and special symbols.
- Missing glyphs can appear as boxes, question marks, or broken spacing.
-
Text direction and layout
- If you added right-to-left languages, confirm your UI supports RTL mirroring.
- Check alignment, icons, paddings, and navigation order.
-
Pluralization and grammar rules
- Some languages need different plural forms, gendered terms, or contextual variants.
- A single translated string may not be sufficient.
-
Interpolation / placeholders
- Ensure variables like
{name},%s,{{count}}are preserved correctly. - Broken placeholders can crash rendering or show raw tokens.
- Ensure variables like
-
HTML/markup escaping
- If translations contain tags or special characters, confirm they’re escaped or safely rendered.
- Unescaped strings can break the DOM or UI components.
-
Encoding issues
- Make sure all files are saved and served in UTF-8.
- Bad encoding can corrupt accents, emoji, and non-Latin text.
-
Line wrapping and text scaling
- Test with larger system font sizes and accessibility settings.
- Localization can expose weak responsive design.
-
Hardcoded assumptions in code
- Search for:
- fixed string lengths
- hardcoded English comparisons
- concatenated phrases
- index-based parsing of translated text
- These often fail when translated.
- Search for:
-
Missing or fallback keys
- Check for missing translation keys or incorrect locale fallbacks.
- A fallback string might be empty, too long, or not intended for that context.
- Sorting, dates, numbers, currency
- Locale-sensitive formats may affect spacing, separators, or layout.
- Some UI components may not expect localized formats.
- Caching / stale assets
- Old translation bundles or cached UI assets can cause mixed-language or partially updated screens.
Good quick test
Try one “stress locale” with:
- very long strings
- RTL language
- accented characters / non-Latin script
- placeholder-heavy strings
That usually reveals the weak spots fast.
If you want, I can also give you a debug checklist by framework (React, iOS, Android, Flutter, etc.) or help you diagnose a specific broken screen.