Get lingui configuration from package.json
⚠️ Internal package: You probably don't need this.
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.