Communitygithub.com

BEKO2210/Firstbrain

국제화 및 지역화 패턴. 하드코딩된 문자열 탐지, 번역 관리, 로케일 파일, RTL 지원.

Firstbrain란 무엇인가요?

이 스킬은 소프트웨어 애플리케이션에서 국제화(i18n) 및 지역화(L10n)를 효과적으로 구현하기 위한 종합 가이드입니다. React, Next.js, Python 등 다양한 플랫폼에서 사용할 수 있는 구체적인 구현 패턴과 모범 사례를 제공합니다. 하드코딩된 문자열을 감지하고, 번역 파일을 체계적으로 관리하며, RTL(Right-to-Left) 언어를 지원하는 방법을 상세히 설명합니다. 또한 `scripts/i18n_checker.py` 스크립트를 통해 누락된 번역이나 하드코딩을 자동으로 검사할 수 있어 개발 워크플로우에 직접 통합할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/BEKO2210/Firstbrain/tree/HEAD/03%20-%20Resources/Skills/i18n-localization

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

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

문서

i18n 및 지역화

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


1. 핵심 개념

용어의미
i18nInternationalization - 앱을 번역 가능하게 만드는 과정
L10nLocalization - 실제 번역 작업
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>

사용 시기

이 스킬은 개요에 설명된 워크플로우나 작업을 실행할 때 적용됩니다.

연결

  • 도메인: [[Software Entwicklung]]
  • 카테고리: [[Software Architektur]]
  • 파일:
    • scripts/i18n_checker.py
  • 탐색: [[Skills Uebersicht]], [[Home]]

Individual skills in this repo

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

Expert in building portfolios that actually land jobs and clients -

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

Best practices for Remotion - Video creation in React

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

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.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas.

BEKO2210/Firstbrain

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

BEKO2210/Firstbrain

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

BEKO2210/Firstbrain

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

BEKO2210/Firstbrain

Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

BEKO2210/Firstbrain

Extract transcripts from YouTube videos and generate comprehensive, detailed summaries using intelligent analysis frameworks

관련 스킬