lgalfaso/angular-dynamic-locale#93 provides a solution for packaging angular locales with lgalfaso/angular-dynamic-locale during the build. Here's a more elaborate example using gulp.
Important steps
- Adapt gulp build (see gulpfile.js, don't forget to add gult/temp/dynamicLocalePreload.js to your test runner (e.g. karma.conf.js)
- Add dependency to dynamicLocalePreload (see yourApp.js), don't forget to remove any calls to
tmhDynamicLocaleProvider.localeLocationPattern()
from your code.