gilbsgilbs / babel-plugin-i18next-extract

Babel plugin that statically extracts i18next and react-i18next translation keys.
https://i18next-extract.netlify.com
MIT License
161 stars 37 forks source link

Allow nested t-calls to be extracted #156

Open bmestanov opened 4 years ago

bmestanov commented 4 years ago

Is your feature request related to a problem? Please describe.

A project that I'm working on has the policy of avoiding props spreading. I couldn't extract keys using this.props.t('somekey') with the current configuration.

Describe the solution you'd like

Allow tFunctionNames to be ['t', 'props.t', 'this.props.t']

Describe alternatives you've considered

Adding a custom i18n name props works for props.t but again this.props.t is not possible.

Additional context