If uses withTranslation HOC with namespaces, and props destruction like const MyComponent = ({ t }) => {}, extract translations in the default namespace file
Reproduction:
import { withTranslation } from 'react-i18next';
const MyComponent0 = ({ t }) => {
return <p>{t('key0')}</p>
}
withTranslation('ns0')(MyComponent0);
Describe the bug
If uses withTranslation HOC with namespaces, and props destruction like
const MyComponent = ({ t }) => {}
, extract translations in the default namespace fileReproduction:
Expected behavior
Should extract translates in the namespace files
What actually happens
Your environment