v3: source lang file is not updated during extraction
Describe the bug
If you've an id for your translation and change the source lang string in the code, it doesn't get updated in the /locale/
To Reproduce Here's a repro repo https://github.com/gothy/lingui-v3-source-issue
-
Clone and have a look at https://github.com/gothy/lingui-v3-source-issue/blob/master/locale/en/messages.po
-
Run
yarn extractTrans. -
The "welcome.title" string is still in
/locale/en/messages.po, equal toWelcome to <0>Next.js!</0>the same.
<Trans id="welcome.title">
Welcome toooo <a href="https://nextjs.org">Next.js!</a>
</Trans>
Expected behavior
/pages/index.jsx file should be processed and new message(with "toooo") should be extracted to messages.po file
Additional context Add any other context about the problem here.
- jsLingui version
lingui --version3.0.0-11 - Babel version
npm list @babel/core@babel/[email protected] - Your Babel config (e.g.
.babelrc) or framework you use (Create React App, Meteor, etc.)
Have you tried running extract with the Overwrite Flag --overwrite?
You need to use --overwrite flag in that case.
Example:
