BASE

Lingui

Lingui

Web framework / library · Free

JavaScript and React localization tools with message catalogs: extract interface text and connect translations.

Also known as: lingui/js-lingui; js-lingui; lingui-js

Resource illustration: Lingui

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Extract and connect interface translations
  • Prepare message catalogs and test locale switching

Example workflow

A possible workflow; this is not a report of hands-on testing.

Extract and connect interface translations.

Before you start

  • Web application source code and the intended workflow.
  • The project's framework and runtime version.

Steps

  1. Mark translatable messages in application source code.
  2. Prepare message catalogs and test locale switching.
  3. Add real data and error handling; check the production build.

Check your result

  • The workflow works after a page refresh and with invalid data.
  • The bundle, server rendering, and supported browsers suit the project.

Choosing Lingui

Extract and connect interface translations

Choose this when

  • Extract and connect interface translations
  • Prepare message catalogs and test locale switching

Requirements

  • Lingui 6 requires Node.js 22.19+ and an ESM-compatible environment; macros use a Babel plugin or SWC plugin. @lingui/react supports React 16.14+.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Lingui 6 packages are ESM-only except for the CommonJS metro-transformer; community integrations have their own support boundaries.

Frequently asked questions

What can you use for free in Lingui?

Code and local use under MIT.

What additional costs might arise with Lingui?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Lingui?

MIT for the code; dependencies have separate licenses.

How do you get started with Lingui?

Mark translatable messages in application source code. Prepare message catalogs and test locale switching. Add real data and error handling; check the production build.

What does Lingui do at build time, and what remains at runtime?

Macros mark messages in source; extract creates catalogs, and compile converts them into runtime output without a MessageFormat parser. PO is the default; JSON, CSV, and custom formats are available. React bindings are separate from the core, and Svelte/Astro integrations are listed as community packages.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Lingui
  • web
  • Development

Sources

Other resources