Home

Awesome

<div align="center"> <h1>Lingui<sub>js</sub></h1>

馃實馃摉 A readable, automated, and optimized (3 kb) internationalization for JavaScript

<hr />

Main Suite Release Workflow Testing Code Coverage PRs Welcome Join the community on Discord

DocumentationQuickstartExampleSupportContributeLicense

</div>

Internationalization is the design and development of a product, application or document content that enables easy localization for target audiences that vary in culture, region, or language.

--- W3C Web Internationalization FAQ

Lingui is an easy yet powerful internationalization (i18n) framework for global projects.

Quickstart

  1. Introduction
  2. Installation and Setup

Tutorials

Example

Short example how i18n looks with JSX:

import { Trans } from "@lingui/react/macro"

function App() {
  return (
    <Trans id="msg.docs" /* id is optional */>
      Read the <a href="https://lingui.dev">documentation</a>
      for more info.
    </Trans>
  )
}

Message from this component will be extracted in following format:

msgid "msg.docs"
msgstr "Read the <0>documentation</0> for more info."

For more example see the Examples directory.

Support

If you are having issues, please let us know.

Contribute

Contribution to open-source project is everything from spreading the word, writing documentation to implement features and fixing bugs.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

License

The project is licensed under the MIT license.