-
Notifications
You must be signed in to change notification settings - Fork 390
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: support extracting from all forms of i18n._ / i18n.t calls #1586
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
22c6ae3
to
1e73e0c
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## next #1586 +/- ##
==========================================
- Coverage 75.55% 75.30% -0.26%
==========================================
Files 76 76
Lines 1980 1976 -4
Branches 520 516 -4
==========================================
- Hits 1496 1488 -8
- Misses 372 375 +3
- Partials 112 113 +1
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 in Codecov by Sentry. |
da39865
to
c198973
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a pretty solid change to me! 👏
Co-authored-by: Andrii Bodnar <andrii.bodnar@crowdin.com>
@andrii-bodnar done |
Description
Since i'm still not satisfied with what was done here + latest work on the Vue extractor got me thinking of another solution.
Extractor could match a
i18n._
call from any level deep of member access expression.Since this matching behavior could match false positives, instead of marking manually what we should extract, i think i's better for DX to mark what we should skip
i18n.t
is a real alias ofi18n._
. Every usage is supported.Extractor, able to extract every usage of
i18n._
ori18n.t
without an explicit annotation.Typings for
i18n._
/i18n.t
improved. Now they will not allow to misuse a librarymixin message descriptor with other parameters is forbidden
Types of changes
Fixes # (issue)
Checklist