lingui / js-lingui

🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript
https://lingui.dev
MIT License
4.36k stars 370 forks source link

`lingui extract-experimental` bugs #1797

Open yunsii opened 9 months ago

yunsii commented 9 months ago

Describe the bug

image

To Reproduce

https://github.com/yunsii/lingui-examples-nextjs-swc-1797

Expected behavior


AndrewIngram commented 2 months ago

I don't have it implemented as a fork right now, but rather a separate in-house script with a lot of copy-pasted code; so i'll start off by putting together a gist with the key parts. I think the only notable parts are really the esbuild config and the custom extractor.

thekip commented 1 month ago

@AndrewIngram i prepared a PR for the next branch with your ideas https://github.com/lingui/js-lingui/pull/1958