Skip to content

Webpack + moduleFedrationPlugin + translations of shared components not working #220

@DhitiChavda

Description

@DhitiChavda

I'm submitting a bug report

  • Library Version:
    major.minor.patch-pre
    5.72.0

Please tell us about your environment:

  • Operating System:
    macOs Ventura 13.1

  • Node Version:
    6.2.0

14.19.3

  • NPM Version:
    6.14.7
  • JSPM OR Webpack AND Version
    webpack 5.72.0
  • Browser:
    all

  • Language:
    TypeScript X4.6.3

Current behavior:
When used ModuleFedrationPlugin container to share the component from App1 to App2, translations are not been translated and only Keys are visible in App2 UI
App1 webpack looks like :
Screenshot 2023-05-08 at 5 08 27 PM
App2 webpack looks like:
Screenshot 2023-05-08 at 5 10 52 PM
Components in App2 (from App1) looks like
Screenshot 2023-05-08 at 5 12 43 PM
Screenshot 2023-05-08 at 5 12 57 PM
Screenshot 2023-05-08 at 5 13 08 PM

Expected/desired behavior:

In App2, the shared components should come up with translations and not only key

  • What is the expected behavior?
    The shared components should come up with translations and not only key

  • What is the motivation / use case for changing the behavior?
    translationd not coming up

I even tried adding react-i18next to peerDependencies but it didn't worked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions