xiaohongshu
xiaohongshu
i18n-translator
Manage i18n translations for Note Sage plugin. Use when: (1) Adding new translation keys, (2) Updating existing translations, (3) Maintaining consistency across 11 languages (en, ko, ja, es, fr, de, pt, zh, ar, ru, hi), (4) Finding missing translations
Full skill instructions
Note Sage Obsidian 플러그인의 다국어(i18n) 번역 관리 전담 스킬입니다.
| 코드 | 언어 | 방향 | 파일 |
|---|---|---|---|
en | English | LTR | 기준 언어, 타입 정의 포함 |
ko | 한국어 | LTR | |
ja | 日本語 | LTR | |
es | Español | LTR | |
fr | Français | LTR | |
de | Deutsch | LTR | |
pt | Português | LTR | |
zh | 简体中文 | LTR | |
ar | العربية | RTL | 오른쪽에서 왼쪽 |
ru | Русский | LTR | |
hi | हिन्दी | LTR |
src/i18n/
├── index.ts # i18n 핵심 모듈 (t() 함수, setLanguage() 등)
└── locales/
├── en.ts # 영어 (기준) - TranslationKeys 인터페이스 정의
├── ko.ts # 한국어
├── ja.ts # 일본어
├── es.ts # 스페인어
├── fr.ts # 프랑스어
├── de.ts # 독일어
├── pt.ts # 포르투갈어
├── zh.ts # 중국어 (간체)
├── ar.ts # 아랍어
├── ru.ts # 러시아어
└── hi.ts # 힌디어
영어 파일(en.ts)에 정의된 TranslationKeys 인터페이스를 기준으로 합니다:
export interface TranslationKeys {
appTitle: string;
quickAction: QuickActionTranslations; // 빠른 액션 버튼
commands: CommandsTranslations; // 명령어 팔레트
prompts: PromptsTranslations; // 빠른 프롬프트
settings: SettingsTranslations; // 설정 탭
// ... 기타 키
}
주요 섹션:
quickAction - 채팅 입력창 위 빠른 액션 버튼commands - Obsidian 명령어 팔레트prompts - AI 프롬프트 템플릿settings - 플러그인 설정
settings.builtinTools - 내장 도구settings.agentOptions - Agent SDK 옵션settings.mcp - MCP 서버 설정단계 1: 영어 파일에 인터페이스 및 값 추가
// src/i18n/locales/en.ts
// 1. 인터페이스에 새 키 추가 (중첩된 경우)
interface NewFeatureTranslations {
title: string;
description: string;
}
// 2. TranslationKeys 또는 SettingsTranslations에 추가
interface SettingsTranslations {
// ... 기존 키
newFeature: NewFeatureTranslations; // 새로 추가
}
// 3. 영어 값 추가
export const en: TranslationKeys = {
settings: {
// ... 기존 값
newFeature: {
title: 'New Feature',
description: 'Description of the new feature',
},
},
};
단계 2: 다른 언어 파일에 동일한 구조로 번역 추가
// src/i18n/locales/ko.ts
export const ko: TranslationKeys = {
settings: {
// ... 기존 값
newFeature: {
title: '새 기능',
description: '새 기능에 대한 설명',
},
},
};
중요: 모든 11개 언어 파일에 동일한 구조로 추가해야 합니다!
# 검증 스크립트 실행
python .claude/skills/i18n-translator/scripts/validate_translations.py
import { t, setLanguage, getLanguage } from './i18n';
// 번역 텍스트 가져오기
const title = t('appTitle'); // 단순 키
const apiKey = t('settings.apiKey'); // 중첩 키
const webSearch = t('settings.builtinTools.webSearch'); // 깊은 중첩
// 언어 변경
setLanguage('ko');
// 현재 언어 확인
const currentLang = getLanguage(); // 'ko'
새 번역 작업 시:
en.ts)에 키와 인터페이스 추가 (기준)ko.ts)에 번역 추가ja.ts)에 번역 추가es.ts)에 번역 추가fr.ts)에 번역 추가de.ts)에 번역 추가pt.ts)에 번역 추가zh.ts)에 번역 추가ar.ts)에 번역 추가ru.ts)에 번역 추가hi.ts)에 번역 추가.) 표기법으로 깊은 키 접근 가능xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience