Skip to content

How to Lingui.js with Vite in TurboRepo #1857

Answered by thekip
sohamnandi77 asked this question in Q&A
Discussion options

You must be logged in to vote

Updating monorepo docs is what i have in my list for a long time. The difficulty here that every monorepo is different and even in the turborepo it could be setup differently.

I personally use turborepo on my full-time project. We have, what it called, an "integrated monorepo", it means packages are not buildable and publishable but bound together using tsconfigs path aliases.

Imagine that we have 1 application and 2 libraries which this application is consuming.

.
└── projects
    ├── app
    ├── lib1
    └── lib2

Both lib1 and lib2 have a frontend code ad should be processed by extractor.

What has to be done:

  1. Createlingui.config.js only in app project
  2. Add all libs sources used in the app

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sohamnandi77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants