Replies: 1 comment
-
Create for nextjs:
For
If you have a package.json in your apps which is defining what packages from monorepo is used in particular app you can use this package.json to programatically build list of the folder to extract.
"dependencies": {
"@acme/ui": "workspace:^",
"@acme/auth": "workspace:^"
} Read
This will ensure you have a single source of truth ( Don't create Use some kind of TMS with a Translation Memory to manage translation for multiple catalogs in your monorepo. This make sure all yours apps has own catalogs which includes only those messages they need. You also can use a deps extractor per application, this way it will figure out automatically what packages are used in the app and extract only from them.
Define |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a monorepo using create-t3-turbo, and I'm trying to share translations between
/apps/nextjs
and/apps/expo
. I thought about creating a shared package in/packages/lang
, but I'm not sure how to set everything up properly.I looked at the Lingui monorepo guide, but it's almost empty and doesn't provide any concrete setup instructions.
Here's a simplified structure of my monorepo, it's not a complete listing, but it should give a general idea:
What I would like to do:
/apps/nextjs
and/apps/expo
.@acme/lang
import.Also, since both apps are in the monorepo, should I set up a separate
lingui.config.js
for/packages/lang
? And how should the runtimei18n
instance andI18nProvider
be shared?Beta Was this translation helpful? Give feedback.
All reactions