I am facing an issue with the deployment time of my server as I am using @angular/localize to support three languages in my application. Despite all locales sharing the same assets, they are being downloaded and deployed individually for each one.
To address this, I attempted to remove assets for all but one locale by removing the respective folder through a script. However, now I want the other locales to utilize the assets from en-US instead of displaying a 404 not found error as they currently do.
Is there a solution available to achieve this at present?
My current locale configuration is as follows:
"i18n": {
"sourceLocale": "en-US",
"locales": {
"fr": "src/locale/messages.fr.xtb",
"pt": "src/locale/messages.pt.xtb",
"hi": "src/locale/messages.hi.xtb",
}
},
For serving verification purposes, I am utilizing the following configuration:
"prod-hi": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"deleteOutputPath": false,
"assets": [],
"localize": ["hi"]
},