This should just load one specific language bundle synchronously.
You could even use webpacks path-mapping to import from "./localization" and have it transparently use "./localization/en".
With this, you could create separate bundles that bake in a specific language.
This should just load one specific language bundle synchronously.
You could even use webpacks path-mapping to import from
"./localization"
and have it transparently use"./localization/en"
. With this, you could create separate bundles that bake in a specific language.