@lingui/vite-plugin
v6.9.1
Published
Vite plugin that compiles Lingui message catalogs on the fly, so .po files can be imported directly
Readme
@lingui/vite-plugin
Vite plugin that compiles Lingui message catalogs on the fly, so .po files can be imported directly
@lingui/vite-plugin is part of Lingui. Lingui is a lightweight, open-source internationalization (i18n) library for JavaScript and TypeScript. It brings compile-time macros and a CLI for message extraction to React, React Native, Vue, SolidJS, Astro, Svelte, and Node.js.
The plugin compiles catalogs when they are imported, so there is no lingui compile step to run. With lingui({ macroTransform: true }) it also transforms Lingui macros natively via @lingui/native-tools, so no Babel or SWC plugin is needed for Lingui.
Usage
See the Vite setup in the installation guide and the Vite plugin reference.
License
This package is licensed under the MIT license.
