Skip to content

Module Federation: How can I make static files (assets/i18n) available to the remote(MFE) when it is used inside a shell #1584

Answered by eironman
axell9641 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @axell9641, I had the same problem as you, and I solved it with a custom loader on the shell.

Custom loader:
https://github.com/eironman/module-federation-shell/blob/master/src/app/core/language/translate-custom-loader.class.ts

Use it in shell app:
https://github.com/eironman/module-federation-shell/blob/master/src/app/app.module.ts

In the Feature app, translations are available in the regular directory
https://github.com/eironman/module-federation-app-a

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ScriptedAlchemy
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