Pular para o conteúdo
Skillpedia
Sites e telas (frontend)75 mil · #3052

text-expansion

O que ela faz

Esta skill verifica o CSS em busca de tamanhos fixos e cortes rígidos que quebrariam textos traduzidos. Ela é para desenvolvedores e designers que oferecem mais de um idioma.

Quando usar

  • ✓Quando um botão ou rótulo tem largura fixa que quebraria com um idioma mais longo.
  • ✓Quando um site está prestes a ser traduzido para vários idiomas.
  • ✓Quando um layout corta ou esconde textos que vêm de arquivos de tradução.

Link da skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-expansion/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-expansion/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Estamos traduzindo nosso app para o alemão e os botões transbordam. Você pode fazer o layout suportar textos mais longos?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente encontra larguras fixas e cortes rígidos nos estilos. Substitui-os por tamanhos flexíveis e sugere testar com um idioma falso esticado.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Design UI components to accommodate text expansion from translation

Layouts designed only with English copy routinely break when translated: buttons overflow their containers, labels truncate, and navigation items wrap unexpectedly. Catching these issues early with pseudo-locale testing is far cheaper than fixing them after translations are delivered.

Quick Reference

  • German translations are typically 30% longer than English; Finnish 50% longer
  • Avoid fixed-width containers for text-bearing elements like buttons and labels
  • Use min-inline-size instead of inline-size to allow natural growth
  • Test with a pseudo-locale that inflates strings before committing translations
  • Include pseudolocalization in CI or preview testing, not just manual QA

Check

Identify CSS rules and component styles that use fixed widths or hard truncation on elements containing translatable text, which would break when content expands in other languages. Check that the team can test a pseudolocalized build or preview.

Fix

Replace fixed inline-size with min-inline-size on text containers, remove overflow: hidden from interactive elements, and add a pseudo-locale build step for visual testing in local development and CI.

Explain

Explain how text expansion during translation breaks fixed layouts and what CSS patterns prevent overflow and clipping across locales.

Code Review

Review CSS files and component styles for fixed widths, overflow: hidden, white-space: nowrap, and text-overflow: ellipsis on buttons, labels, navigation items, and headings that contain translatable text.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/i18n/text-expansion

Perguntas frequentes

Quanto um texto traduzido pode ficar mais longo?

A skill observa que o alemão costuma ser cerca de 30 por cento mais longo que o inglês, e o finlandês cerca de 50 por cento mais longo.

O que é a pseudolocalização?

É uma versão de teste do site com textos de exemplo inflados, para que problemas de layout apareçam antes das traduções reais.

Devo remover o overflow hidden de todo lugar?

A skill sugere removê-lo de elementos interativos, já que o overflow oculto pode cortar o texto.

Detalhes

Descrição original do autor

Use when reviewing CSS for fixed dimensions, truncation, or overflow rules on elements that render translatable strings.

repo: thedaviddias/Front-End-Checklist

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#3052
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas