@lingui/solid
v6.8.0
Published
SolidJS bindings for Lingui i18n: I18nProvider, Trans and useLingui, with compile-time macros
Downloads
33,453
Readme
@lingui/solid
SolidJS bindings for Lingui i18n: I18nProvider, Trans and useLingui, with compile-time macros
@lingui/solid 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 package brings the Lingui workflow to SolidJS with reactive components. @lingui/solid exports I18nProvider, Trans and useLingui, @lingui/solid/macro exports the macros that generate ICU messages from JSX at build time, and defineConfig from @lingui/solid/config applies the Solid-specific settings to the Lingui configuration.
Installation
npm install @lingui/core @lingui/solid@lingui/core provides the i18n instance passed to the provider.
Usage
See the SolidJS tutorial and the Solid reference.
License
This package is licensed under the MIT license.
