콘텐츠로 바로 가기
React SDK

간단한 React i18n

Hooks, Context, 매끄러운 CDN 제공을 갖춘 React 애플리케이션용 타입 안전 국제화.

Source string

useTranslations('common')

Edited in code, picked up on the next scan

Glossary

Brand terms stay untranslated

AI translation

Written from your product context, not word by word

Git sync

chore/i18n-sync

Opened as a pull request for review

Published

de.json

Live on the CDN, no deploy

Published

fr.json

Live on the CDN, no deploy

Published

ja.json

Live on the CDN, no deploy

Published

tr.json

Live on the CDN, no deploy

Better I18N

One source of truth for every language

Setup

Installation & Setup

Get started with @better-i18n/use-intl in three steps — install, wrap your app with the provider, and start translating.

Install

Add @better-i18n/use-intl and use-intl to your project.

terminal
npm install @better-i18n/use-intl use-intl

Wrap your app with BetterI18nProvider

Place the provider at the root of your component tree. It fetches messages from the CDN and makes them available via hooks.

App.tsx
import { BetterI18nProvider } from '@better-i18n/use-intl';

function App() {
  return (
    <BetterI18nProvider project="your-org/your-project" locale="en">
      <YourApp />
    </BetterI18nProvider>
  );
}

Use translations

Call useTranslations() in any component to access your translation keys with full TypeScript support.

MyComponent.tsx
import { useTranslations } from '@better-i18n/use-intl';

function MyComponent() {
  const t = useTranslations('common');
  return <h1>{t('welcome')}</h1>;
}

Capabilities

기능

몇 분 만에 React 앱에서 Better I18N을 시작하세요.

React Hooks API(useTranslations)

자동 완성을 포함한 완전한 TypeScript 지원

최적의 번들 크기를 위한 지연 로딩

복수형을 지원하는 ICU 메시지 형식

변수 보간 및 포맷팅

로케일 관리를 위한 React Context

SSR 및 SSG 지원

개발 중 핫 리로드

DevTools 통합

MyComponent.tsx
import { useTranslations } from '@better-i18n/use-intl';

function MyComponent() {
  const t = useTranslations('common');

  return (
    <div>
      <h1>{t('welcome')}</h1>
      <p>{t('greeting', { name: 'World' })}</p>
    </div>
  );
}
<BetterI18nProvider>

Provider fetches from the CDN once

useTranslations('common')

Every component reads from context

TtlCache · 60s

60s in-memory cache, offline fallback

t('welcome')

Keys typed from your project

Ecosystem

인기 React i18n 라이브러리와 함께 사용

Better I18N은 즐겨 쓰는 i18n 라이브러리를 대체하는 제품이 아닙니다. 오히려 번역 관리를 담당하는 레이어로서, 기존 라이브러리를 더 강력하게 만들어 줍니다.

react-intl

ICU 메시지 형식을 지원하는 가장 인기 있는 React i18n 라이브러리입니다. 수천 개의 프로덕션 앱에서 사용됩니다.

Better I18N은 번역을 react-intl JSON 형식으로 직접 동기화합니다. 대시보드에서 편집하고 앱에서 즉시 변경 사항을 확인하세요.

react-i18next

i18next를 기반으로 한 React용 강력한 i18n 프레임워크입니다. 네임스페이스, 보간, 복수형 같은 기능을 기본으로 제공합니다.

네임스페이스를 포함한 i18next 호환 JSON으로 내보내세요. Better I18N이 번역 워크플로를 처리하고, i18next가 런타임을 담당합니다.

FormatJS

react-intl을 포함한 국제화 라이브러리 모음입니다. ICU 메시지 문법과 CLDR 데이터를 지원합니다.

Better I18N은 ICU 메시지 형식을 기본으로 지원합니다. 복잡한 복수형과 select를 시각적으로 관리하고, FormatJS 형식으로 내보낼 수 있습니다.

Lingui

가독성이 높고 자동화되어 있으며 최적화된 i18n 라이브러리입니다. 매크로 기반 메시지 추출로 뛰어난 개발 경험(DX)을 제공합니다.

Lingui CLI로 메시지를 추출하고, Better I18N에서 번역을 관리한 뒤 GitHub 통합을 통해 자동으로 다시 동기화하세요.

Keep reading

관련

다른 프레임워크용 i18n 살펴보기

CDN 게시 기능이 정말 놀라워요. 번역을 푸시하면 즉시 라이브로 반영됩니다 — 배포도, 캐시 무효화도 필요 없어요.

Samet Selcuk

창업자, Hellospace

React i18n으로 개발을 시작하세요

무료 플랜을 사용할 수 있습니다. 신용카드가 필요 없습니다.