lingui / js-lingui

🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript
https://lingui.dev
MIT License
4.64k stars 383 forks source link

fix: correctly handle a variable passed to the `t` macro #2048

Closed timofei-iatsenko closed 1 month ago

timofei-iatsenko commented 1 month ago

Description

Support

import { t } from '@lingui/core/macro'
const msg = t(msg)

Types of changes

Fixes # (issue)

Checklist

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
js-lingui ✅ Ready (Inspect) Visit Preview Oct 16, 2024 10:13am
github-actions[bot] commented 1 month ago

size-limit report 📦

Path Size
./packages/core/dist/index.mjs 3.09 KB (0%)
./packages/detect-locale/dist/index.mjs 723 B (0%)
./packages/react/dist/index.mjs 1.65 KB (0%)
./packages/remote-loader/dist/index.mjs 7.26 KB (0%)
timofei-iatsenko commented 1 month ago

Have no idea what's going on with a size testing WF, the changes here are completely unrelated.