I'm trying to use @angular/localize for i18n.
I found it is actually build completely separate bundles for each of the language.
Is there any way to make it share some common parts like assets (all static files), styles, favicon, probably some non-UI classes (services, guard, pipes etc) across all internationalized bundles?
Other words keep the whole stuff for my i18n.sourceLocale language at root folder and put only stuff where i18n actually differs under the lang subfolder?
Here are parts of my angular.json:
"i18n": {
"sourceLocale": "en-US",
"locales": {
"uk": "src/locale/messages.fr.json",
"ru": "src/locale/messages.es.json"
}
},
"configurations": {
"fr": {
"localize": ["fr"],
"baseHref": "/fr/",
"outputPath": "dist/fr/"
},
"ru": {
"localize": ["es"],
"baseHref": "/es/",
"outputPath": "dist/es/"
}