키 파일 없는 워크플로
키 파일을 관리하지 않고 JSX와 문자열을 번역합니다.
Welcome.tsx
import { T, useTranslation } from 'tyndale-react';
export function Welcome() {
const t = useTranslation();
return (
<div>
<T>Welcome to our app!</T>
<p>{t('You have 3 new messages')}</p>
</div>
);
}