Doesn't extract namespaces if used props destruction
pgrekovich opened this issue · comments
Pavel Hrakovich commented
Describe the bug
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);
Expected behavior
Should extract translates in the namespace files
What actually happens
Your environment
- OS: MacOS 10.15.4
- Plugin version: 0.6.1
- Node version: 10.16.0