3.9.5 • Published 3 years ago

@translation/conf v3.9.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

License Version Downloads

@translation/conf

Get lingui configuration from package.json

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

@translation/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.

Usage

const getConfig = require("@translation/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.

License

This package is licensed under MIT license.