@lingui/core downloads · last 12 months
@lingui/core is the runtime portion of Lingui’s internationalization system. It loads compiled message catalogs, tracks the active locale, and formats ICU MessageFormat messages so an application can display translated text and locale-sensitive message values instead of hard-coded strings.
Its approach centers on compiled catalogs and a runtime API for using translations in application code. This makes it relevant to developers who want a defined catalog-loading and locale-selection layer, particularly in projects that already use Lingui’s message workflow; the package description identifies the runtime responsibilities but does not specify a complete translation-management process.
The core runtime provides the i18n instance and message-formatting capabilities used to work with catalogs and the current locale. In framework integrations, Lingui also has React-related topics, but framework hooks and component APIs are not specified here, so check the documentation for the exact APIs available in version 6.12.0 rather than assuming they are exported by this package.
The package is tagged for JavaScript and TypeScript projects and for ecosystems including React, React Native, SolidJS, Vue, and Next.js. Its role is the shared i18n runtime; framework-specific rendering or bindings may require additional integration beyond @lingui/core, and catalog compilation is a separate step implied by its support for compiled catalogs.
At a reported gzip bundle size of 2.4 kB and unpacked size of 43.7 kB, the runtime has a small stated compressed bundle footprint. Version 6.12.0 is MIT-licensed; the supplied project data reports 2.6M weekly downloads, 5.9K GitHub stars, 474 forks, 46 open issues, and an update date of 2026-11-03, which can help teams assess its maintenance context without guaranteeing compatibility with a particular setup.
A practical caveat is that @lingui/core is a runtime, not a complete end-to-end localization workflow: its stated responsibilities cover loading compiled catalogs, locale state, and ICU message formatting. Teams should separately verify how their chosen tooling extracts, compiles, distributes, and updates translations, and confirm framework integration details for their application.
- When an application needs to load Lingui compiled message catalogs and format their ICU MessageFormat messages at runtime.
- When locale selection must be tracked centrally so the active language can be changed and used consistently by the application.
- When translations are already prepared as compiled Lingui catalogs and the application needs a runtime to consume them.
- When you need ICU MessageFormat support for translated messages rather than treating every translation as a plain string.
- When sharing Lingui runtime behavior across JavaScript or TypeScript code in a project using a supported ecosystem such as React, React Native, SolidJS, Vue, or Next.js; verify framework bindings separately.
- When evaluating a small stated compressed runtime footprint: the package reports a 2.4 kB gzip bundle size, though actual application output depends on integration.
- If you need translation extraction, catalog compilation, or translation-file management from this package alone, choose or add tooling for those workflow stages; @lingui/core is described as the runtime for compiled catalogs.
- If your application needs framework-specific components or hooks but you intend to install only this core package, verify the required integration package or use a framework-neutral setup instead.
- If translations are simple key-value strings and ICU MessageFormat and active-locale runtime behavior are unnecessary, use a narrower lookup approach rather than adding this runtime.
- If your project requires a localization feature not stated here, such as a particular date, number, or currency formatting API, verify that capability in the version documentation or use a dedicated formatting approach.
- If your build cannot consume compiled message catalogs, adapt the build workflow to produce them or select an i18n approach that matches the formats your application can load.
- If you need a supported integration guarantee for a specific framework or version, do not infer it from the package topics; confirm compatibility and required companion tooling before adopting @lingui/core.
CORRECTIONS
Spot wrong data here?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back