1.4.0 • Published 3 weeks ago
@react-aria/parcel-resolver-optimize-locales
Licence
—
Version
1.4.0
Deps
1
Size
14 kB
Vulns
0
Weekly
0
@react-aria/parcel-resolver-optimize-locales
A Parcel resolver plugin to optimize React Aria to only include translated strings for locales that your app supports.
Configuration
Add the following to your .parcelrc:
{
"extends": "@parcel/config-default",
"resolvers": ["@react-aria/parcel-resolver-optimize-locales", "..."]
}
Then, in your package.json, add a "locales" field:
{
"locales": ["en-US", "fr-FR"]
}
Any strings for locales other than the ones listed here will be removed from your bundle. See the documentation for a full list of supported locales.