-
Notifications
You must be signed in to change notification settings - Fork 394
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
fix(macro): Trans inside Plural has leading whitespace #1437
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Codecov ReportBase: 70.92% // Head: 70.92% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## next #1437 +/- ##
=======================================
Coverage 70.92% 70.92%
=======================================
Files 75 75
Lines 1940 1940
Branches 525 525
=======================================
Hits 1376 1376
Misses 452 452
Partials 112 112
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@Martin005 please, to It also should be ported to the SWC plugin, otherwise would be id mismatch with messages in catalog. |
@thekip There are already a few commits to the |
Yes, it's a small fix that can be easily merged and released within a 3.x version |
This small fix will also break existing catalogs with translations because of different whitespaces. Also SWC plugin version should be fixed with extractor version otherwise - id mismatch. |
@Martin005 could you add a unit test into |
Yeah, I keep forgetting that... I will change the base branch to
Here is the PR for SWC plugin: lingui/swc-plugin#17 |
Added in this commit |
2d5a6ff
to
bbb4776
Compare
bbb4776
to
70f85ce
Compare
In the meantime, we can think about how make generating id's from original message less fragile and depend on the spaces. I have been thinking about that and don't see a clear and easy solution. Removing all whitespaces from the message before generating the hash? Not an option because: |
@thekip you're right, any message modification before generating hash can have unexpected downsides, so maybe it would be better not to do this |
Description
Fixes #1292
PR for updates in SWC plugin: lingui/swc-plugin#17
Types of changes
Checklist