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

docs: Use defineMessage macro for lazy translations #991

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

orangain
Copy link
Contributor

After reading #980 (comment), I learned about the defineMessage macro and understood that it is the best way for lazy translations.

This PR updates the react common patterns document to use defineMessage instead of t for lazy translations.

@vercel
Copy link

vercel bot commented Feb 27, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/lingui-js/js-lingui/7CcHnz4CkGNnW6cjBsoto1cMNZrZ
✅ Preview: https://js-lingui-git-fork-orangain-update-lazy-translation-lingui-js.vercel.app

@codecov
Copy link

codecov bot commented Feb 27, 2021

Codecov Report

Merging #991 (7dd0aae) into main (77ec0bd) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #991   +/-   ##
=======================================
  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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77ec0bd...7dd0aae. Read the comment docs.

@semoal semoal merged commit 3d51239 into lingui:main Mar 1, 2021
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