Skip to content

feat: produce comment and context in transform output#201

Merged
andrii-bodnar merged 1 commit intomainfrom
produce-comment-and-context
Feb 25, 2026
Merged

feat: produce comment and context in transform output#201
andrii-bodnar merged 1 commit intomainfrom
produce-comment-and-context

Conversation

@timofei-iatsenko
Copy link
Collaborator

This is a follow up for #193

Related #190

I found that original implementation doesn't produce context and comment fields (because it was never supposed to be used with extractor, so that was a simplicfication i made), so the result of swc plugin transformation could not be directly used with lingui extractor as user wanted.

This adds this functionality and make it behave closer to the js version - in fact, exactly as a js version.

fyi @karmeleon

@timofei-iatsenko timofei-iatsenko marked this pull request as ready for review February 25, 2026 12:11
@andrii-bodnar andrii-bodnar merged commit 7981816 into main Feb 25, 2026
2 checks passed
@andrii-bodnar andrii-bodnar deleted the produce-comment-and-context branch February 25, 2026 16:00
@codecov
Copy link

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.69%. Comparing base (c7e02bc) to head (a3c35e8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
+ Coverage   92.61%   92.69%   +0.08%     
==========================================
  Files           8        8              
  Lines        1448     1465      +17     
==========================================
+ Hits         1341     1358      +17     
  Misses        107      107              
Flag Coverage Δ
unittests 92.69% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/js_macro_folder.rs 97.82% <100.00%> (+0.12%) ⬆️
src/lib.rs 91.90% <100.00%> (+0.13%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants