Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lingui-conf

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lingui-conf

Get lingui configuration from package.json

  • 0.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
266
increased by5220%
Maintainers
1
Weekly downloads
 
Created
Source

lingui-conf

Get lingui configuration from package.json

Internal package: You probably don't need this package. It's used by packages in js-lingui

Package finds nearest package.json starting from current directory, reads lingui configuration, provides defaults for all options and <rootDir> with current working directory.

Usage

const getConfig = require('lingui-conf')

const config = getConfig()
// When package.json is located in '/app/package.json'
// config.rootDir === '/app'
// config.localeDir === '/app/locale'

Options

localeDir [string]

Default: "/locale"

Directory with locales

srcPathDirs [array<string>]

Default: [""]

A list of path to directories where application source files are located. Plugins and CLI looks for translations in these directories.

srcPathIgnorePatterns [array<string>]

Default: ["/node_modules/"]

An array of regexp pattern strings that are matched against all src paths. Plugins and CLI will ignore these paths.

Keywords

FAQs

Package last updated on 18 May 2017

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