본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)7.6k · #13165

internationalization

하는 일

이 스킬은 사용자에게 보이는 텍스트를 앱의 번역 카탈로그에 유지하는 방법을 설명합니다. 사용하는 언어, 키 이름을 짓는 방법, 번역 검사가 실행되는 방식을 다룹니다. 두 개 이상의 언어를 지원하는 앱에 텍스트를 추가하거나 바꾸는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓앱의 보이는 텍스트, 라벨, 알림 메시지 또는 빈 상태를 추가하거나 바꿀 때.
  • ✓앱이 추가 언어를 선택해서, 그 카탈로그를 업데이트해야 할 때.
  • ✓언어 선택기에 앱이 실제로 불러올 수 없는 언어가 표시될 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/internationalization/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/internationalization/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“설정 페이지에 새 라벨을 추가하고, 프랑스어와 독일어 번역도 업데이트해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 텍스트를 먼저 영어 카탈로그에 추가한 뒤, 앱이 나열한 로케일만 업데이트합니다. 같은 키와 자리 표시자를 유지하고 i18n 검사를 실행합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Internationalization — opt-in translations

English (en-US) is the default source locale. Do not create or update additional locale catalogs unless the app's agent-native.config.ts lists them under translations.locales.

Rule

Visible framework/template UI copy belongs in the app's i18n catalog, not inline in components. When you add or edit UI text, update the English source catalog first, then update only the locale catalogs listed in translations.locales, and run the i18n guard.

Catalogs

Templates use app/i18n/:

  • en-US.ts is the canonical source tree and fallback.
  • Other locale files keep the same non-plural keys and the same placeholders.
  • index.ts exports an AgentNativeI18nCatalog with English bundled and non-English catalogs loaded by dynamic import.

Use BCP-47 filenames from the supported set: en-US, zh-CN, es-ES, fr-FR, de-DE, ja-JP, ko-KR, pt-BR, hi-IN, ar-SA.

If an app only ships translations for a subset of that set, set supportedLocales on the AgentNativeI18nCatalog to that subset. Without it, <LanguagePicker /> lists every framework-supported locale regardless of whether loadMessages can actually resolve it.

UI Pattern

  • Wrap apps with AppProviders i18n={{ catalog: i18nCatalog }}.
  • Read strings with useT() and keep keys stable.
  • Apps expose a /settings route without a sidebar item for it: Settings opens from the account menu in the sidebar footer and from ⌘, (Ctrl+, elsewhere). Core's Account › Preferences page already renders the Interface language row (with Timezone; both are the per-user localization record, so a change applies in every app); don't add a second picker to an app's Settings page. Keep the header language icon only as a quick-access shortcut.
  • Don't add an "Agent settings" row to an app's settings page: the Agent group's pages are part of Settings. Link to a page with buildSettingsRoute(page, sub?), and localize the link's label.
  • Settings copy follows the same rules: page and group labels are core agentChat.settingsShell.* keys, and an app's own rows, areas, and search entries take already translated strings from the app catalog.
  • Use useFormatters() for dates, numbers, relative time, and lists instead of embedding formatted values in translation strings.
  • Do not translate stable identifiers: action names, route names, enum values, app-state keys, database values, protocol fields, env var names, or provider names.

Plurals And Placeholders

Plural strings use i18next/CLDR suffixes. Do not force every locale to copy English plural categories:

  • English uses _one and _other.
  • Chinese and Japanese usually use _other.
  • Arabic uses _zero, _one, _two, _few, _many, and _other.

Keep interpolation placeholders identical across locales, such as {{count}}, {{name}}, or ICU-style {count} arguments.

RTL

New UI should be RTL-safe. Prefer logical CSS utilities/properties such as ms-*, me-*, ps-*, pe-*, start-*, end-*, text-start, and text-end when direction matters. Avoid hardcoded left/right positioning for new localized UI unless it is genuinely physical.

Verification

Run:

pnpm guard:i18n-catalogs

For broader changes, also run the affected template tests and pnpm typecheck. Machine translation is only a starting point; high-visibility strings need human review.

자주 묻는 질문

번역 기능이 기본으로 켜져 있나요?

아니요. 앱은 설정에서 다른 로케일을 사용하겠다고 명시해야 하며, 영어가 기본입니다.

모든 언어 파일을 바꿔야 하나요?

아니요. 앱이 활성화된 것으로 나열한 로케일만 바꾸면 됩니다. 영어 카탈로그는 항상 먼저 업데이트됩니다.

컴포넌트 안에 텍스트를 직접 넣어도 되나요?

아니요. 보이는 텍스트는 컴포넌트 안에 직접 두지 않고 카탈로그에 두어야 한다고 이 스킬은 말합니다.

상세 정보

작성자의 원본 설명

How to add or edit localized UI copy in agent-native apps. Use when adding, removing, or changing user-visible interface text, prompts, toasts, labels, empty states, or date/number/list formatting. Apps opt in to additional locales from `agent-native.config.ts`.

repo: BuilderIO/agent-native

인기도

GitHub 스타
7.6k
순위
#13165
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬