Skip to content
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

Fix Gatsby i18n issue #8344

Closed
corwintines opened this issue Oct 24, 2022 · 2 comments
Closed

Fix Gatsby i18n issue #8344

corwintines opened this issue Oct 24, 2022 · 2 comments
Assignees
Labels
bug 🐛 Something isn't working

Comments

@corwintines
Copy link
Member

corwintines commented Oct 24, 2022

This is part of our Change i18n plugin epic.

Describe the bug

There are currently some issues with the internationalization library that is being used.

1 - High memory usage during build time
2 - A large app.js bundle is being created, making the user experience suffer when this is downloaded

After some initial fixes for code splitting which was contributing to the large app.js bundle, it was uncovered that more needs to be done to fix this.

Currently this is an analysis of these bundles:
Untitled

Ideally, we can split out translation bundles:
Untitled (1)

To reproduce

Build the app and analyze the bundles

Expected behavior

Untitled (1)

Get to a point where languages are being broken out into their own bundles, and we no longer have them in one app.js bundle.

Screenshots

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Additional context

No response

@corwintines corwintines added the bug 🐛 Something isn't working label Oct 24, 2022
@pettinarip
Copy link
Member

Efforts are being done in terms of changing the i18n plugin that we are using to the following one: https://github.com/microapps/gatsby-plugin-react-i18next

@pettinarip
Copy link
Member

Bundles after changing the lib:
image

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants