Skip to content

1st attempt at i18n support #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

refactorTractor
Copy link

@refactorTractor refactorTractor commented Dec 18, 2023

Hi!

This is a first attempt for basic support of i18n in native federation.

The main restriction with my implementation is that libraries can't have localizations to inline, because I did nothing with the build adapter to support it.

What I did, is that FederationOptions has a locales array, which is assumed to be an array of outputPath subfolders each with their own build output.

Each locale's folder in turn

  • gets shared and mapped files copied into it
  • gets federation info and import map generated into it
  • indexHtml gets overwritten in it

I'm still in process of testing it, but I wanted to get your feedback asap.
I also believe I might have some extra steps to support the dev server mode, but I haven't really looked into it yet.

closes #413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native federation: support Angular i18n (partially)
1 participant