-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extraction not working for TransComponent #222
Comments
I'm observing the same issue. No custom Trans components, no obscure settings. I've got no development experience with Babel, but based on my brief debugging session today it seems that the Update: I wasn't able to reproduce the bug in a clean project neither using only Babel transpilation, nor using |
@skmohammadi does your project happen to use webpack and TypeScript? The trouble in my setup was using the |
@ddx32 Hi. Its may. |
Have same problem with the preset Also preserve set in tsconfig.json. babel preset-react is used in |
Resolved. I before autocomplete import of Trans as component from Hope this help someone else to save some time. (too late for me 🤣 ) Also possible use |
Describe the bug
I use next-i18next plugin and extraction not working for TransComponent, while
t
function works as well.How to reproduce
Babel configuration:
Reproduction:
Expected behavior
new keys in
common.json
(as default namespace):The text was updated successfully, but these errors were encountered: