Socket
Socket
Sign inDemoInstall

@lingui/cli

Package Overview
Dependencies
Maintainers
0
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/cli

CLI for working wit message catalogs


Version published
Weekly downloads
177K
increased by2.41%
Maintainers
0
Weekly downloads
 
Created

What is @lingui/cli?

@lingui/cli is a command-line interface for the LinguiJS framework, which is used for internationalization (i18n) in JavaScript applications. It provides tools for extracting messages, compiling them, and managing translations.

What are @lingui/cli's main functionalities?

Extract Messages

This command scans your source code for messages marked for translation and extracts them into a catalog file. This is useful for identifying all the text that needs to be translated in your application.

lingui extract

Compile Messages

This command compiles the message catalogs into a format that can be used by the application at runtime. This step is necessary to convert the raw translation files into a format that the LinguiJS runtime can understand.

lingui compile

Add Locale

This command adds a new locale to your project. It sets up the necessary files and directories for managing translations in the specified locale.

lingui add-locale [locale]

Extract and Compile

This combined command first extracts messages and then compiles them. It is a convenient way to update your translation catalogs and make them ready for use in your application.

lingui extract && lingui compile

Other packages similar to @lingui/cli

Keywords

FAQs

Package last updated on 05 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc