Multiple Translation Files
i18next.t('look.deep');i18next.t($ => $.look.deep);i18next.t('common:look.deep'); // not recommended with ns prefix when used in combination with natural language keys
// better use the ns option:
i18next.t('look.deep', { ns: 'common' })i18next.t($ => $.look.deep, { ns: 'common' })const { t } = useTranslation(['translation', 'common']);withTranslation(['translation', 'common'])(MyComponent);<Translation ns={['translation', 'common']}>
{
(t) => <p>{t('look.deep', { ns: 'common' })}</p>
}
</Translation><Translation ns={['translation', 'common']}>
{
(t) => <p>{t($ => $.look.deep, { ns: 'common' })}</p>
}
</Translation>Separating translation files
Manage your translations with a management GUI
Last updated