Communitygithub.com

ASoudy/AGS – 국제화 및 지역화

애플리케이션 국제화(i18n)와 지역화(L10n)를 위한 패턴, 하드코딩된 문자열 감지, 번역 관리, 로케일 파일, RTL 지원을 다룹니다.

AGS – 국제화 및 지역화란 무엇인가요?

이 스킬은 개발자가 애플리케이션에 국제화(i18n)와 지역화(L10n)를 효과적으로 도입하고 유지할 수 있도록 돕습니다. React(react-i18next), Next.js(next-intl), Python(gettext) 등 다양한 프레임워크에서 사용할 수 있는 구현 패턴을 제공하며, 로케일 파일 구조, RTL 지원, 하드코딩된 문자열 검출 스크립트 등 실무적인 모범 사례를 포함합니다. 특히 번역 키 사용, 복수형 처리, 날짜/숫자 형식, ICU 메시지 포맷 등 주요 개념을 설명하고, 잘못된 관행을 피할 수 있도록 명확한 가이드라인을 제시합니다. 또한 RTL 레이아웃을 위한 CSS 논리 속성 사용법과 마크다운으로 정리된 체크리스트, i18n_checker.py 스크립트를 포함하여 CI/CD 파이프라인에서도 활용할 수 있습니다. 이 스킬은 퍼블릭 웹 앱, SaaS 제품, 내부 도구 등 다양한 프로젝트 유형에 적합하며, 환경별 검증 및 전문가 리뷰를 대체하지 않으므로 필요한 경우 명확한 입력과 권한 확인을 요청합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ASoudy/AGS/tree/HEAD/AGAS/plugins/antigravity-awesome-skills-claude/skills/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.

ASoudy/AGS

Advanced JavaScript animation library skill for creating complex, high-performance web animations.

ASoudy/AGS

Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis.

ASoudy/AGS

Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

ASoudy/AGS

One sentence - what this skill does and when to invoke it

ASoudy/AGS

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

ASoudy/AGS

Pull a YouTube video transcript into a queryable markdown vault with yt-dlp subtitle discovery, VTT cleanup, metadata frontmatter, and capture-seed stubs.

ASoudy/AGS

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

ASoudy/AGS

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

ASoudy/AGS

AI-powered animation tool for creating motion in logos, UI, icons, and social media assets.

ASoudy/AGS

CRITICAL: Use for Makepad animation system. Triggers on: makepad animation, makepad animator, makepad hover, makepad state, makepad transition, "from: { all: Forward", makepad pressed, makepad 动画, makepad 状态, makepad 过渡, makepad 悬停效果

ASoudy/AGS

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

ASoudy/AGS

Next.js App Router principles. Server Components, data fetching, routing patterns.

ASoudy/AGS

Expert integration of Supabase Auth with Next.js App Router

ASoudy/AGS

React and Next.js 14+ application development with App Router, Server Components, TypeScript, Tailwind CSS, and modern frontend patterns.

ASoudy/AGS

Best practices for Remotion - Video creation in React

ASoudy/AGS

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

ASoudy/AGS

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

ASoudy/AGS

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

ASoudy/AGS

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

ASoudy/AGS

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

관련 스킬