Lingui String Exporter FreeBeta
ByAndrii BodnarVerified Author

Deliver new translations to your Lingui application over-the-air

Install

What is Lingui String Exporter?

Copy link

Lingui is a JavaScript library for internationalization (i18n) and localization (l10n) in global projects. By default, Lingui uses the PO Catalog Format during the Message Extraction. Message extraction is an essential step in the internationalization process. It involves analyzing your code and extracting all messages defined in it so that your message catalogs are always up-to-date with the source code.

The extracted messages can't just be used in production as is, they need to be compiled. Compilation is the process of bundling the messages into optimized JavaScript files for each language.

Typically, to update content within a web app, you need to make changes to the source code and then deploy the updates to your web server. This process is suitable for occasional updates. However, if you support a multilingual web app, where translations need to be updated frequently, you may want to provide translations to users more rapidly with minimal manual intervention.

In this case, Over-the-Air Content Delivery can be a valuable solution. By integrating a content localization platform like Crowdin into your web application, you can streamline the translation process.

OTA Content Delivery in Lingui requires compilation on the client side. The Lingui String Exporter is designed to avoid any additional compilation by providing already compiled messages ready to use in your application.

Setting up the integration

Copy link
  • Install the Lingui String Exporter
  • Open the Translations tab in your Crowdin project, then Target File Bundles and click the Add bundle button to create a new Bundle. As the Target file format select the Lingui String Exporter: Screenshot Screenshot
  • Then create a new Distribution in the Over-The-Air Content Delivery section: Screenshot

Crowdin OTA JS Client

Copy link

It's recommended to use the Crowdin OTA Client JS to easily retrieve the translation string hosted on the CDN.

Visit the Lingui OTA tutorial for more details.

Features

Copy link
Feature Value
File Extension .json
API Type lingui-minimal
System No
Supports pluralization No
Configurable No
Handles Crowdin Unified Placeholders No

Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.

Learn More
Categories
Development
File Formats
Works with
  • Crowdin Enterprise
  • crowdin.com
Details

Released on Sep 26, 2023

Updated on Feb 11, 2024

Published by Andrii Bodnar

Identifier:lingui-string-exporter