Extraction Automation #1942
Unanswered
ericchernuka
asked this question in
Q&A
Replies: 1 comment 2 replies
-
We use extraction to a template: // package.json "build": "yarn extract-messages && next build",
"extract-messages": "lingui extract-template", This way your build is always up-to-date (no ID's instead of messages). For translation process we use TMS (translation management system) and have a separate task for that in CI called "extract messages" which we call when we ready to translate The tasks is a simple "yarn extract-messages && crowdin upload" You don't need to update your catalogs on every commit, this will cause a lot of conflicts between branches. Simply write your code and treat extraction artifacts as derivative of your code (like a produced .map from your .ts file) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just wondering how everyone is doing the extraction process. I saw the git hook here which is totally valid, but does end up causing a lot of commit noise with the PO file constantly updating the line numbers. I noticed that rebasing when this occurs becomes a bit nightmarish.
So I was just wondering if there are other techniques being used in other apps? CI workflow?
One other option I had considered was a CI step that ran extract and if it resulted in uncommitted files it would either auto commit them or throw an error indicating that the step needed to be completed.
Anyways, love to get some ideas from others. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions