Get lingui configuration from package.json


3,149103.12.120 days ago4 years agoMinified + gzip package size for @lingui/conf in KB


License Version Downloads


Get lingui configuration from package.json

⚠️ Internal package: You probably don't need this.

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

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


const getConfig = require("@lingui/conf")

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

See the reference documenation of lingui-cli for all options.


This package is licensed under MIT license.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.