translation-strings
하는 일
이 스킬은 소프트웨어 프로젝트에서 번역을 위해 텍스트가 어떻게 준비되는지 확인합니다. 앱을 여러 언어에 맞게 준비하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓프로젝트가 텍스트와 숫자를 이어 붙여 번역 문장을 만들 때.
- ✓새 앱을 위한 번역 라이브러리를 설정할 때.
- ✓새 언어를 위해 코드 안의 사용자 표시 텍스트를 준비할 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/translation-strings/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 앱은 'Found ' + count + ' results' 같은 코드로 문장을 만듭니다. 이것을 번역할 수 있게 어떻게 바꿔야 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 여러 텍스트 조각으로 만든 문장을 찾아, 이름 붙은 자리표시자가 있는 하나의 메시지로 바꿉니다. 복수형은 번역 라이브러리가 처리합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Write internationalisation-friendly translation strings
Naive string concatenation produces untranslatable sentences because word order varies dramatically across languages. A pattern like "Found " + count + " results" cannot be translated correctly into languages where the number appears in a different position or where the noun form changes depending on the count. Bad i18n strings force translators to work around developer mistakes — or simply leave content untranslated.
Quick Reference
- Never concatenate translated strings with variables — use named placeholders
- Use ICU MessageFormat for pluralisation, gender, and select patterns
- Keep translation keys descriptive and scoped to their feature context
- Extract all user-visible strings — do not hardcode any copy in components
Check
Check whether translation strings use proper message formatting with placeholders rather than string concatenation.
Fix
Replace concatenated translation strings with ICU message format patterns and ensure pluralisation is handled via the library, not conditionals.
Explain
Explain why string concatenation breaks translations and how ICU MessageFormat handles variable word order, pluralisation, and gender.
Code Review
Review components and utility functions for hardcoded user-visible strings, string concatenation involving translated text, and missing plural forms.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/javascript/translation-strings
자주 묻는 질문
ICU MessageFormat이란 무엇인가요?
숫자, 복수형, 성별을 포함하는 메시지를 번역 가능하게 쓰는 표준 방식입니다.
텍스트 조각을 이어 붙이면 왜 안 되나요?
언어마다 단어 순서가 다르므로, 이어 붙인 조각은 올바르게 번역되기 어려운 경우가 많습니다.
컴포넌트 안에 직접 쓰인 텍스트는 어떻게 하나요?
이 스킬은 사용자에게 보이는 모든 텍스트를 컴포넌트에 직접 두지 않고 번역 파일로 빼내라고 설명합니다.
상세 정보
작성자의 원본 설명
Use when reviewing a codebase for internationalisation readiness, setting up an i18n library, or preparing strings for a new locale.
인기도
- GitHub 스타
- 75k
- 순위
- #3062
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.