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

Feature key prefixes #223

Closed CarsonF closed 11 months ago

CarsonF commented 2 years ago

Support key prefixes https://github.com/i18next/react-i18next/pull/1371

const { t } = useTranslation('translation', { keyPrefix: 'very.deeply.nested' });
const text = t('key'); // extract as "very.deeply.nested.key"