gsoft-inc/wl-hopper

Optimizing bundle size by removing unused languages from React Aria

Opened this issue · 0 comments

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