Workflow senza file di chiavi
Traduci JSX e stringhe senza dover mantenere file di chiavi.
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>
);
}