Migrating v9 to v10
New in v10
import React from 'react';
import { useTranslation } from 'react-i18next';
export function MyComponent() {
const [t, i18n] = useTranslation();
return <p>{t('my translated text')}</p>
}Components without replacement
Migration
I18nextProvider changes
Components v9 -> v10
Last updated