Lingui .po files, context incorrect

Lingui + crowdin seems like a great way to translate applications (in our case, a React app).

After following a pretty simple setup process, when we push our source file to crowdin (crowdin upload), each string’s context is incorrect.

Here’s a snippet of our source language .po file:
source1

So the string to be translated is “Chat” and the context should be “Customer support chat”. In the crowdin UI, here’s the context:

So as we can see, there’s a lot of extra stuff that shouldn’t be there. Similarly, strings that we haven’t added any context to (so in crowdin, the context should be completely blank), incorrectly include extra info:

Hi @farii

We should be supporting Lingui localization.

But it looks to me that your source file is more Unreal Engine .po rather than GNU .po

You can find the difference here:

Unreal sample uses your format

#. A comment
msgctxt "System"
msgid "Welcome!"
msgstr "Welcome!

To upload Unreal Engine Gettext PO, use API or CLI specifying the localization type: “gettext_unreal”.

If I’m mistaken (because it’s hard to say something with 100% confidence based only on screenshots) please share the sample file and URL to your Crowdin project with me (you can DM me or send an email to support@crowdin.com) so I can review it from my side and provide you with a solution.

It’s a react app, with these dependencies:

    "@lingui/core": "^5.1.2",
    "@lingui/react": "^5.1.2",
    "@lingui/cli": "^5.1.2",

I guess I haven’t reached “trust level” high enough to send a DM so I’ll email support.

Thanks, we’ll expect your email in this case :slight_smile: