lingui / js-lingui

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

feat: add defineConfig method #2086

Closed timofei-iatsenko closed 4 days ago

timofei-iatsenko commented 1 week ago

Description

It seems, having a defineConfig type helper become a community standard for cli tools and other runners.

This PR brings this function and update a documentation to use it. This function is just a type helper. Both JS and TS users could benefit from it.

I re-exported this method from @lingui/cli because @lingui/cli should be installed in every project, but @lingui/conf is an internal package and users should not have it installed.

Types of changes

Fixes # (issue)

Checklist

vercel[bot] commented 1 week ago

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

Name Status Preview Updated (UTC)
js-lingui ✅ Ready (Inspect) Visit Preview Nov 11, 2024 1:07pm
github-actions[bot] commented 1 week 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%)