Skip to content

Commit

Permalink
Merge pull request #1876 from ProgrammeVitam/story-11852-clean-code_r…
Browse files Browse the repository at this point in the history
…emove_old_i18n

Story #11854 clean code: Remove old i18n mechanism
  • Loading branch information
marob authored May 29, 2024
2 parents 3378dbc + f2ac0ae commit af2def5
Show file tree
Hide file tree
Showing 76 changed files with 201 additions and 30,357 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
"ng": "ng",
"ng-high-memory": "node --max_old_space_size=4000 ./node_modules/@angular/cli/bin/ng",
"start": "ng serve --proxy-config proxy.conf.json --disable-host-check --ssl --ssl-key $npm_package_pki_path/$npm_package_pki_asset.key --ssl-cert $npm_package_pki_path/$npm_package_pki_asset.crt",
"start:en": "ng serve --proxy-config proxy.conf.json --configuration=en --disable-host-check --ssl --ssl-key $npm_package_pki_path/$npm_package_pki_asset.key --ssl-cert $npm_package_pki_path/$npm_package_pki_asset.crt",
"start:pastis": "ng serve pastis --proxy-config proxy.conf.json --disable-host-check --ssl --ssl-key $npm_package_pki_path/$npm_package_pki_asset.key --ssl-cert $npm_package_pki_path/$npm_package_pki_asset.crt",
"build": "ng build --configuration=standalone --i18n-locale fr --build-optimizer=false --optimization=false",
"build": "ng build --configuration=standalone --build-optimizer=false --optimization=false",
"postinstall": "ngcc",
"build:prod": "export NODE_OPTIONS=--max_old_space_size=4096; ng build --prod --output-path ../../../target/www",
"build:all": "npm run build:fr && npm run build:en",
"build:pastis": "export NODE_OPTIONS=--max_old_space_size=4096; ng build pastis --prod --i18n-locale fr",
"build:pastis": "export NODE_OPTIONS=--max_old_space_size=4096; ng build pastis --prod",
"test": "ng test --watch=false",
"test:pastis": "ng test pastis --watch=false",
"test:vitamui-library": "ng test vitamui-library --watch=false",
Expand All @@ -35,7 +33,6 @@
"@angular/compiler": "10.1.3",
"@angular/core": "10.1.3",
"@angular/forms": "10.1.3",
"@angular/localize": "^10.1.6",
"@angular/material": "^10.1.3",
"@angular/platform-browser": "10.1.3",
"@angular/platform-browser-dynamic": "10.1.3",
Expand Down Expand Up @@ -89,7 +86,6 @@
"@angular/cli": "^10.1.3",
"@angular/compiler-cli": "10.1.3",
"@angular/language-service": "10.1.3",
"@angular/localize": "^10.2.3",
"@biesbjerg/ngx-translate-extract": "^7.0.2",
"@types/jasmine": "~3.3.0",
"@types/jasminewd2": "^2.0.8",
Expand Down
2 changes: 0 additions & 2 deletions ui/ui-frontend-common/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ import './zone-flags.ts';
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone';

import '@angular/localize/init';
64 changes: 0 additions & 64 deletions ui/ui-frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@
"output": "/assets"
}
]
},
"en": {
"aot": true,
"i18nFile": "projects/identity/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
}
}
},
Expand All @@ -88,9 +81,6 @@
"configurations": {
"production": {
"browserTarget": "identity:build:production"
},
"en": {
"browserTarget": "identity:build:en"
}
}
},
Expand Down Expand Up @@ -190,13 +180,6 @@
"output": "/assets"
}
]
},
"en": {
"aot": true,
"i18nFile": "projects/portal/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
}
}
},
Expand Down Expand Up @@ -548,13 +531,6 @@
],
"serviceWorker": true,
"ngswConfigPath": "projects/starter-kit/ngsw-config.json"
},
"en": {
"aot": true,
"i18nFile": "projects/starter-kit/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
}
}
},
Expand Down Expand Up @@ -646,13 +622,6 @@
],
"serviceWorker": true,
"ngswConfigPath": "projects/ingest/ngsw-config.json"
},
"en": {
"aot": true,
"i18nFile": "projects/ingest/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
}
}
},
Expand All @@ -666,9 +635,6 @@
"configurations": {
"production": {
"browserTarget": "ingest:build:production"
},
"en": {
"browserTarget": "ingest:build:en"
}
}
},
Expand Down Expand Up @@ -753,13 +719,6 @@
],
"serviceWorker": true,
"ngswConfigPath": "projects/archive-search/ngsw-config.json"
},
"en": {
"aot": true,
"i18nFile": "projects/archive-search/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
}
}
},
Expand All @@ -773,9 +732,6 @@
"configurations": {
"production": {
"browserTarget": "archive-search:build:production"
},
"en": {
"browserTarget": "archive-search:build:en"
}
}
},
Expand Down Expand Up @@ -860,13 +816,6 @@
],
"serviceWorker": true,
"ngswConfigPath": "projects/collect/ngsw-config.json"
},
"en": {
"aot": true,
"i18nFile": "projects/collect/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
}
}
},
Expand All @@ -880,9 +829,6 @@
"configurations": {
"production": {
"browserTarget": "collect:build:production"
},
"en": {
"browserTarget": "collect:build:en"
}
}
},
Expand Down Expand Up @@ -950,13 +896,6 @@
"scripts": []
},
"configurations": {
"en": {
"aot": true,
"i18nFile": "projects/pastis/src/locale/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"i18nMissingTranslation": "warning"
},
"production": {
"fileReplacements": [
{
Expand Down Expand Up @@ -1024,9 +963,6 @@
"port": 4251
},
"configurations": {
"en": {
"browserTarget": "pastis:build:en"
},
"production": {
"browserTarget": "pastis:build:production"
},
Expand Down
Loading

0 comments on commit af2def5

Please sign in to comment.