You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
t from useLingui nested in another t placeholder is not transformed #284
When a t from useLingui() is used inside a placeholder expression of another t from the same useLingui(), the inner one is left as a tagged template on the runtime _ function. At runtime that calls i18n._() with a TemplateStringsArray, which returns "".
The Babel macro (@lingui/babel-plugin-lingui-macro 6.9.1) transforms the same input correctly.
Reproduction Steps
label.jsx:
import{useLingui}from'@lingui/react/macro'exportfunctionLabel({ device }){const{ t }=useLingui()returnt`Calibrated for ${device||t`Microphone`}`}
Activity
timofei-iatsenko commentedon Oct 12, 2026
In js version it was fixed some time ago lingui/js-lingui#2625
Worth re-checking all the same test cases in rust version.