Rust tooling for Lingui i18n - compiles to WebAssembly and runs inside SWC, Next.js, and Vite build pipelines.
This monorepo hosts the Rust-based tooling for Lingui. Its flagship is an SWC plugin that transforms @lingui/macro and @lingui/react/macro calls into optimized i18n runtime code at build time - a faster, Rust-powered alternative to the Babel macro.
SWC macro transform plugin for Lingui. Transforms @lingui/macro and @lingui/react/macro calls into optimized i18n runtime code. Compiles to WebAssembly (wasm32-wasip1).
- Installation, usage & options -
@lingui/swc-pluginREADME swc_corecompatibility table - Compatibility- Lingui macro reference
Contributions are welcome! See CONTRIBUTING.md for instructions on setting up Rust, building the WASM plugin, running tests, and submitting pull requests.
The project is licensed under the MIT license.