-
Notifications
You must be signed in to change notification settings - Fork 380
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
docs: Update react patterns #980
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/lingui-js/js-lingui/69TwJtiHzqRVFoKTPWGee1EH4mt4 |
Codecov Report
@@ Coverage Diff @@
## main #980 +/- ##
=======================================
Coverage 83.30% 83.30%
=======================================
Files 53 53
Lines 1605 1605
Branches 430 430
=======================================
Hits 1337 1337
Misses 156 156
Partials 112 112 Continue to review full report at Codecov.
|
On v3 i18n._(t |
Tecnically for lazy translation the best way of doing it, is |
React common patterns is very helpful but its content seems to be a little old. This PR update the content to use
useLingui
hook instead ofI18n
render-prop component.This PR also add link from react tutorial to common i18n patterns as a further reading.