본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #3052

text-expansion

하는 일

이 스킬은 번역된 텍스트를 깨뜨릴 수 있는 고정 크기와 강제 잘림을 CSS에서 찾습니다. 여러 언어를 지원하는 개발자와 디자이너를 위한 스킬입니다.

사용하는 경우

  • ✓더 긴 언어로 바뀌면 깨질 수 있는 고정 너비 버튼이나 레이블이 있을 때.
  • ✓웹사이트를 여러 언어로 번역하려고 할 때.
  • ✓번역 파일의 텍스트가 레이아웃에서 잘리거나 숨겨질 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-expansion/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 앱을 독일어로 번역하는데 버튼이 넘칩니다. 긴 텍스트도 감당하도록 레이아웃을 고쳐 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 스타일에서 고정 너비와 강제 잘림을 찾습니다. 이것을 유연한 크기로 바꾸고, 길게 늘인 가짜 언어로 테스트하라고 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

번역된 텍스트는 얼마나 길어질 수 있나요?

이 스킬은 독일어가 영어보다 약 30퍼센트, 핀란드어는 약 50퍼센트 길어지는 경우가 많다고 설명합니다.

의사 현지화(pseudo-localization)란 무엇인가요?

실제 번역이 오기 전에 레이아웃 문제를 찾을 수 있도록, 텍스트를 부풀린 자리표시자로 만든 테스트용 사이트 버전입니다.

overflow hidden을 모든 곳에서 없애야 하나요?

이 스킬은 숨겨진 넘침이 텍스트를 잘라낼 수 있으므로, 상호작용 요소에서는 제거하라고 제안합니다.

상세 정보

작성자의 원본 설명

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

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#3052
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬