Communitygithub.com

국제화(i18n) 헬퍼

하드코딩된 문자열을 추출하여 i18n 처리하고, 번역 파일을 관리하며, 로케일 적용 범위를 확인합니다. 다국어 앱, 번역 작업, 또는 i18n/로컬라이제이션/언어 관련 요청 시 사용하세요.

국제화(i18n) 헬퍼란 무엇인가요?

이 스킬은 다국어 애플리케이션에서 국제화(i18n) 및 로컬라이제이션(l10n)을 지원하는 포괄적인 도구입니다. 사용자가 i18n 지원을 요청하거나, 새로운 언어를 추가하거나, 번역되지 않은 문자열을 찾거나, 번역 파일을 관리해야 할 때 자동으로 활성화됩니다. JavaScript(React), Vue, Python, Ruby on Rails 등 주요 프레임워크와 라이브러리(react-i18next, vue-i18n, Django i18n, I18n gem 등)를 감지하여 해당 환경에 맞는 작업을 수행합니다. 이 도구는 하드코딩된 문자열을 찾아 번역 키로 대체하고, JSON 또는 Gettext 형식의 번역 파일을 생성 및 관리하며, 누락된 번역을 찾아 커버리지를 확인합니다. 또한 복수화 규칙, 날짜/숫자 형식, 오른쪽에서 왼쪽(RTL) 언어 지원, 그리고 일관된 네이밍 컨벤션과 모범 사례를 제시하여 체계적인 번역 작업을 가능하게 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/crazydubya/internationalization-helper

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

국제화 헬퍼

다국어 애플리케이션에서 국제화(i18n) 및 로컬라이제이션(l10n)을 관리하는 데 도움을 줍니다.

사용 시기

  • 사용자가 i18n 지원을 요청할 때
  • 새로운 언어를 추가할 때
  • 번역되지 않은 문자열을 찾을 때
  • 번역 파일을 관리할 때
  • 사용자가 "번역", "i18n", "l10n", "로케일"을 언급할 때

지침

1. i18n 프레임워크 감지

JavaScript/React:

  • react-i18next
  • react-intl (FormatJS)
  • i18next
  • LinguiJS

Vue:

  • vue-i18n

Python:

  • gettext
  • Django i18n
  • Flask-Babel

Ruby/Rails:

  • I18n gem (내장)

import 구문, 설정 파일 또는 번역 디렉터리를 찾아보세요.

2. 하드코딩된 문자열 찾기

번역되지 않은 텍스트를 검색하세요:

// 나쁨: 하드코딩됨
<button>제출</button>
<p>환영합니다, {user.name}님!</p>

// 좋음: 번역됨
<button>{t('common.submit')}</button>
<p>{t('welcome.message', { name: user.name })}</p>

검색 패턴:

  • JSX/템플릿 태그 내 문자열
  • 알림/오류 메시지
  • 폼 레이블 및 placeholder
  • 버튼 텍스트
  • 유효성 검사 메시지

다음은 제외: 코드 주석, console.log, 테스트 문자열

3. 번역 파일로 추출

React-i18next 형식 (JSON):

{
  "common": {
    "submit": "제출",
    "cancel": "취소"
  },
  "welcome": {
    "message": "환영합니다, {{name}}님!"
  }
}

Gettext 형식 (.po):

msgid "submit_button"
msgstr "제출"

msgid "welcome_message"
msgstr "환영합니다, %(name)s님!"

4. 번역 키 구성

모범 사례:

  • 기능별로 네임스페이스 지정: users.profile.title
  • 공통 문자열 그룹화: common.buttons.save
  • 콘텐츠가 아닌 맥락을 설명: errors.login.invalid (오류.로그인.유효하지않음) - 하지 말 것 errors.wrong_password (오류.잘못된_비밀번호)
  • 일관된 명명 규칙 사용

5. 번역 커버리지 확인

로케일 파일을 비교하여 누락된 번역 찾기:

en.json: 150개 키
ko.json: 142개 키 (8개 누락)
fr.json: 150개 키 ✓

ko.json에 누락된 키:
- users.profile.bio
- settings.privacy.title
[...]

6. 복수화 처리

언어마다 복수 규칙이 다릅니다:

// react-i18next
t('items', { count: 0 })  // "0개 항목"
t('items', { count: 1 })  // "1개 항목"
t('items', { count: 5 })  // "5개 항목"

// 번역 파일
{
  "items_zero": "{{count}}개 항목",
  "items_one": "{{count}}개 항목",
  "items_other": "{{count}}개 항목"
}

7. 날짜, 시간, 숫자 형식 지정

로케일 인식 형식 사용:

// 숫자
const price = new Intl.NumberFormat('ko-KR', {
  style: 'currency',
  currency: 'KRW'
}).format(29900);

// 날짜
const date = new Intl.DateTimeFormat('ko-KR').format(new Date());

8. 오른쪽에서 왼쪽(RTL) 지원

아랍어, 히브리어 등:

  • CSS: direction: rtl;
  • HTML: <html dir="rtl">
  • 논리적 속성: margin-left 대신 margin-inline-start

9. 번역 템플릿 생성

새 로케일용 템플릿 생성:

# 기본 언어에서 키를 복사하고 값은 비워둠
cp locales/en.json locales/de.json
# 번역을 위해 표시

10. 모범 사례

  • 번역은 별도 파일로 유지
  • 소스 텍스트가 아닌 키 사용
  • 번역가에게 맥락 제공
  • 긴 문자열로 테스트 (독일어는 종종 더 길어짐)
  • 복잡한 문자열에는 ICU MessageFormat 사용
  • 번역된 문자열을 연결(concatenate)하지 않음
  • 사용자에게 보이는 모든 텍스트 추출

지원 파일

  • templates/i18n-config.js: 설정 예제
  • templates/locale-file.json: 번역 파일 템플릿

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

관련 스킬