feat: accept t as function#807
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/lingui-js/js-lingui/pngj51p80 |
|
I don't know either. It's pain. But it looks good when it's done. I'll write the docs tonight. Thanks for the PR, I'll review it tonight as well! |
Codecov Report
@@ Coverage Diff @@
## main #807 +/- ##
==========================================
+ Coverage 84.36% 84.45% +0.09%
==========================================
Files 39 39
Lines 1266 1274 +8
Branches 334 335 +1
==========================================
+ Hits 1068 1076 +8
Misses 118 118
Partials 80 80
Continue to review full report at Codecov.
|
|
Docs added, PR looks good! Great job 👍 |
|
Hi! So I was trying to use this functionality today (using v3.0.3) but I'm getting a typescript error: <li>
{t({id: "long_value"})}
</li>I'm guessing the typescript definitions did not get updated? |
|
It just wasn't released yet. We don't have an automatic release process for pre-releases and I wanted to make a new minor release next week on Monday. There's still few new features in development. |
|
@tricoder42 Oh! Ok now i see! That makes sense. However, the public documentation already mentions this feature. That is why I wanted to try it. |
|
Yeah, this is a mistake... We should merge new features into a |
Closes #800
Couldn't update the docs because i'm shit writing tables with RST.. any suggerence? haha