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()
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.