Skip to content

lingui/swc-plugin

Lingui Rust Tooling

Rust tooling for Lingui i18n - compiles to WebAssembly and runs inside SWC, Next.js, and Vite build pipelines.

codecov GitHub contributors GitHub

Overview

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.

Packages

npm npm CI

SWC macro transform plugin for Lingui. Transforms @lingui/macro and @lingui/react/macro calls into optimized i18n runtime code. Compiles to WebAssembly (wasm32-wasip1).

Documentation

Contributing

Contributions are welcome! See CONTRIBUTING.md for instructions on setting up Rust, building the WASM plugin, running tests, and submitting pull requests.

License

The project is licensed under the MIT license.