Lingui

Lingui is an internationalization (i18n) library that uses compile-time macros for JavaScript and TypeScript projects. It offers a CLI tool that automatically extracts messages from source code and converts translation catalogs into optimized runtime outputs. It supports React, React Native, Vue, SolidJS, Astro, Svelte, and Node.js environments.

LI

lingui · Localization & i18n

STARS5.9K
FORKS474
COMMITS—
CONTRIBUTORS264
VERSIONv6.6.0
UPDATEDyesterday
i18nreactjavascripttypescriptMIT

Common commercial products in this category: Crowdin, Lokalise, Phrase

What can it do?
  • By directly defining the texts in your application within the source code, you make translation key management.
  • With CLI tool, you automatically extract messages from your source code and transfer them to PO files.
  • Thanks to compile time macros, you compile translation catalogs in optimized format.
User reviews
  • • NeutralGitHub Issue

    [Epic] Road to LinguiJS v3

    “[![CircleCI]( [![npm@next]( [Documentation]( [Migration guide]( Examples: - [Node.js]( - [Create React App]( - [Next.js]( --- **Note:** Original roadmap was deleted because it wasn't updated. ## Breaking changes - [x] #657 Refactor pseudolocale - Migrate existing functionality…”

  • • NeutralGitHub Issue

    Cannot extract using i18n.plural : undefined is not iterable!

    “Hello, we use lingui v2.9.2 and we got issue extracting using `i18n.plural`: This works: ```tsx export function _( id: MessageDescriptor | string, values?: Record , messageOptions?: MessageOptions ): string { if (typeof id === 'string') { return i18n._(id, values,…”

My note

Alternative pages

More in: Localization & i18n