Dynamic Import of Locales in Angular
Lazy load your locale when changing countries.
The other day I read ‘Using TypeScript Dynamic Imports in Angular’ by Netanel Basal where he says:
TypeScript 2.4 added support for dynamic
import()
expressions, which allow us to asynchronously load and execute ECMAScript modules on demand.