Socket
Socket
Sign inDemoInstall

@lingui/cli

Package Overview
Dependencies
219
Maintainers
2
Versions
132
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

@lingui/cli

CLI for working wit message catalogs

    4.7.1latest
    GitHub
    npm

Version published
Maintainers
2
Weekly downloads
124,899
increased by2.86%

Weekly downloads

Changelog

Source

4.7.1 (2024-02-20)

Bug Fixes

  • compile should generate a TS file (#1851) (e4fbd59)
  • core: use named instead of default export for unraw lib (#1837) (85f0944)
  • don't replace octothorpe coming from variable (#1850) (e321729)

Readme

Source

License Version Downloads

@lingui/cli

lingui command line library for manipulating message catalogues

@lingui/cli is part of LinguiJS. See the documentation for all information, tutorials and examples.

Installation

The library can be installed globally or locally using yarn or npm. The recommended way is installing the package locally. This ensures that everyone who uses the project has the same version and does not need to install additional packages.

npm install --save-dev @lingui/cli
# or using yarn
yarn add --dev @lingui/cli

To run the library locally there are three options, with the first one been recommended one.

1) Add commands to scripts

Add these scripts to your package.json.

{
  "scripts": {
    "extract": "lingui extract",
    "compile": "lingui compile"
  }
}

Then you can use:

npm run extract
npm run compile

2) Use NPX

You can run the scripts directly using a tool for executing Node packages NPX. NPX is included in NPM version 5.2 and higher.

npx lingui extract
npx lingui compile

3) Run commands directly

You can run commands directly from node_modules folder.

node_modules/.bin/lingui extract
node_modules/.bin/lingui compile

Usage

See the tutorial or reference documentation.

License

This package is licensed under MIT license.

Keywords

FAQs

Last updated on 20 Feb 2024

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc