Skip to content
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

feat: allow comment prop on react Trans component #1718

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

j4hr3n
Copy link
Contributor

@j4hr3n j4hr3n commented Jun 28, 2023

Tested by publishing to Verdaccio and installing in a project of mine. Worked like a charm. The React Trans tests even use comment in jsx-without-macros.js.

Description

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Fixes # (issue)

#1713

Checklist

  • I have read the CONTRIBUTING and CODE_OF_CONDUCT docs
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Jun 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
js-lingui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 28, 2023 7:59am

@github-actions
Copy link

size-limit report 📦

Path Size
./packages/core/dist/index.mjs 2.76 KB (0%)
./packages/detect-locale/dist/index.mjs 721 B (0%)
./packages/react/dist/index.mjs 1.59 KB (0%)
./packages/remote-loader/dist/index.mjs 7.24 KB (0%)

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (dc82882) 76.01% compared to head (063262a) 76.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1718   +/-   ##
=======================================
  Coverage   76.01%   76.01%           
=======================================
  Files          79       79           
  Lines        2039     2039           
  Branches      524      524           
=======================================
  Hits         1550     1550           
  Misses        376      376           
  Partials      113      113           
Impacted Files Coverage Δ
packages/react/src/Trans.tsx 90.90% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timofei-iatsenko
Copy link
Collaborator

Please add a separate test case for that. This will ensure it will not break in future or someone will not change this functionality.

@timofei-iatsenko timofei-iatsenko self-requested a review June 28, 2023 08:58
@j4hr3n
Copy link
Contributor Author

j4hr3n commented Jun 28, 2023

Please add a separate test case for that. This will ensure it will not break in future or someone will not change this functionality.

@thekip where would you like me to add a test for this?

@timofei-iatsenko
Copy link
Collaborator

@j4hr3n i've just checked, there is already a test for comment in Trans component. So just ignore my previous comment.

Copy link
Contributor

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@j4hr3n thank you!

@andrii-bodnar andrii-bodnar merged commit 3477c32 into lingui:main Jun 29, 2023
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.

Add support for comment prop on the @lingui/react <Trans> component
3 participants