Communitygithub.com

i18n 및 지역화

하드코딩된 문자열 감지, 번역 관리, 로케일 파일, RTL 지원 등 국제화 및 지역화 패턴에 대한 모범 사례를 제공합니다.

i18n 및 지역화란 무엇인가요?

이 스킬은 소프트웨어 프로젝트에서 국제화(i18n)와 지역화(L10n)를 효과적으로 구현하기 위한 종합적인 가이드입니다. 개발자는 이 스킬을 통해 애플리케이션을 여러 언어와 지역에 맞게 변환하는 방법을 배울 수 있습니다. 주요 내용으로는 i18n 및 L10n의 핵심 개념, 프로젝트 유형별 필요성 판단 기준, React, Next.js, Python과 같은 주요 기술 스택에서의 구현 패턴, 로케일 파일 관리 구조, RTL(오른쪽에서 왼쪽) 언어 지원 방법 등이 포함됩니다. 실용적인 체크리스트와 스크립트를 제공하여 하드코딩된 문자열을 감지하고 번역 누락을 방지함으로써 생산성과 코드 품질을 높이는 데 도움을 줍니다. 이 가이드는 Claude Code, Cursor, Codex 등 다양한 AI 에이전트와 함께 사용할 수 있도록 설계되었습니다.

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

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

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

문서

i18n & 지역화

국제화(i18n) 및 지역화(L10n) 모범 사례


1. 핵심 개념

용어의미
i18n국제화 - 앱을 번역 가능하게 만드는 과정
L10n지역화 - 실제 번역 작업
Locale언어 + 지역 (en-US, tr-TR)
RTL오른쪽에서 왼쪽으로 쓰는 언어 (아랍어, 히브리어)

2. i18n 적용 시점

프로젝트 유형i18n 필요 여부
공개 웹 앱✅ 필요
SaaS 제품✅ 필요
내부 도구⚠️ 고려
단일 지역 앱⚠️ 향후 고려
개인 프로젝트❌ 선택 사항

3. 구현 패턴

React (react-i18next)

import { useTranslation } from 'react-i18next';

function Welcome() {
  const { t } = useTranslation();
  return <h1>{t('welcome.title')}</h1>;
}

Next.js (next-intl)

import { useTranslations } from 'next-intl';

export default function Page() {
  const t = useTranslations('Home');
  return <h1>{t('title')}</h1>;
}

Python (gettext)

from gettext import gettext as _

print(_("Welcome to our app"))

4. 파일 구조

locales/
├── en/
│   ├── common.json
│   ├── auth.json
│   └── errors.json
├── tr/
│   ├── common.json
│   ├── auth.json
│   └── errors.json
└── ar/          # RTL
    └── ...

5. 모범 사례

권장 사항 ✅

  • 번역 키를 사용하고 원시 텍스트는 사용하지 않음
  • 기능별로 번역을 네임스페이스화
  • 복수형 지원
  • 로케일별 날짜/숫자 형식 처리
  • 처음부터 RTL 계획
  • 복잡한 문자열에는 ICU 메시지 형식 사용

금지 사항 ❌

  • 컴포넌트에 문자열 하드코딩
  • 번역된 문자열 연결
  • 텍스트 길이 무시 (독일어는 30% 더 김)
  • RTL 레이아웃 무시
  • 같은 파일에 언어 혼용

6. 일반적인 문제

문제해결 방법
번역 누락기본 언어로 폴백
하드코딩된 문자열린터/체커 스크립트 사용
날짜 형식Intl.DateTimeFormat 사용
숫자 형식Intl.NumberFormat 사용
복수형ICU 메시지 형식 사용

7. RTL 지원

/* CSS 논리 속성 */
.container {
  margin-inline-start: 1rem;  /* margin-left 아님 */
  padding-inline-end: 1rem;   /* padding-right 아님 */
}

[dir="rtl"] .icon {
  transform: scaleX(-1);
}

8. 체크리스트

배포 전 확인:

  • 모든 사용자 대상 문자열이 번역 키를 사용하는가
  • 지원하는 모든 언어에 대한 로케일 파일이 존재하는가
  • 날짜/숫자 형식이 Intl API를 사용하는가
  • RTL 레이아웃이 테스트되었는가 (해당하는 경우)
  • 폴백 언어가 설정되었는가
  • 컴포넌트에 하드코딩된 문자열이 없는가

스크립트

스크립트목적명령어
scripts/i18n_checker.py하드코딩된 문자열 및 번역 누락 감지python scripts/i18n_checker.py <project_path>

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

관련 스킬