Skip to content

Workflow clarification #3321

Answered by longlho
apuntovanini asked this question in Q&A
Dec 30, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

If I understand your question correctly, you should distribute lang files along with packages, so the consuming application can bundle them together. The compilation of those lang files can happen during bundling, or during child package distribution, as long as during bootstrapping the correct messages are passed in.

With regards to the command, I think you can run formatjs compile "node_modules/**/lang/en.json" "./lang/en.json" --ast --out-file lang/en.json and repeat for all of your supported locales.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@apuntovanini
Comment options

@longlho
Comment options

@apuntovanini
Comment options

Answer selected by apuntovanini
Comment options

You must be logged in to vote
2 replies
@longlho
Comment options

@apuntovanini
Comment options

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