Monorepo¶
If you’re using lingui within a monorepo, you need to pass some extra options to lingui babel.
{ rootMode: "upward" } is required to lingui find the correct babel config
{
 "catalogs": [{
   "path": "<rootDir>/locale/{locale}/messages",
   "include": ["<rootDir>"],
   "exclude": ["**/node_modules/**"]
 }],
 "extractBabelOptions": {
   "rootMode": "upward",
 },
 "format": "po",
 "locales": ["en"],
}
- In summary, we’ll have:
 1x
babel.config.jswithin root1x
lingui.config.jswithin rootAnd n
lingui.config.jsper package which extends/overrides from root