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

Optimizing bundle size by removing unused languages from React Aria #144

Open
alexasselin008 opened this issue Feb 7, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@alexasselin008
Copy link
Member

alexasselin008 commented Feb 7, 2024

https://react-spectrum.adobe.com/react-aria/internationalization.html#optimizing-bundle-size

By default, React Aria includes translations for all of the languages listed above. This is inclusive to the most users out of the box, but comes at the cost of bundle size. If your application does not support all of these locales, you can use our build plugins to include only the languages that you do support in your JavaScript bundle.

We should document on our website how to apply this in our applications, to make sure applications have a smaller bundle

@alexasselin008 alexasselin008 added the enhancement New feature or request label Feb 7, 2024
@alexasselin008 alexasselin008 added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant