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

translation-strings

하는 일

이 스킬은 소프트웨어 프로젝트에서 번역을 위해 텍스트가 어떻게 준비되는지 확인합니다. 앱을 여러 언어에 맞게 준비하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓프로젝트가 텍스트와 숫자를 이어 붙여 번역 문장을 만들 때.
  • ✓새 앱을 위한 번역 라이브러리를 설정할 때.
  • ✓새 언어를 위해 코드 안의 사용자 표시 텍스트를 준비할 때.

스킬 링크

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

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

사용 방법

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

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

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

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.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬