angular.json gains an i18n block (sourceLocale nl, en translation file) and an `en` build/serve configuration with i18nMissingTranslation: "error" so a new $localize string without an English unit fails the build, not silently falls back. CI now runs `ng build --localize` to build both locales every run. Verified end-to-end, not just "the build succeeded": the nl bundle ships "Inloggen met DigiD", the en bundle ships "Log in with DigiD". Incidental: prettier/compodoc regen noise in docs/wcag-checklist.md, src/docs/a11y.mdx, documentation.json from the same working session. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
120 lines
3.3 KiB
JSON
120 lines
3.3 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"cli": {
|
|
"packageManager": "npm",
|
|
"analytics": false
|
|
},
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"atomic-design-poc": {
|
|
"projectType": "application",
|
|
"schematics": {
|
|
"@schematics/angular:component": {
|
|
"style": "scss"
|
|
}
|
|
},
|
|
"root": "",
|
|
"sourceRoot": "src",
|
|
"prefix": "app",
|
|
"i18n": {
|
|
"sourceLocale": "nl",
|
|
"locales": {
|
|
"en": {
|
|
"translation": "src/locale/messages.en.xlf"
|
|
}
|
|
}
|
|
},
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular/build:application",
|
|
"options": {
|
|
"browser": "src/main.ts",
|
|
"tsConfig": "tsconfig.app.json",
|
|
"inlineStyleLanguage": "scss",
|
|
"assets": [
|
|
{
|
|
"glob": "**/*",
|
|
"input": "public"
|
|
}
|
|
],
|
|
"styles": ["src/styles.scss"],
|
|
"polyfills": ["@angular/localize/init"],
|
|
"i18nMissingTranslation": "error"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"budgets": [
|
|
{
|
|
"type": "initial",
|
|
"maximumWarning": "1.5MB",
|
|
"maximumError": "2MB"
|
|
},
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "4kB",
|
|
"maximumError": "8kB"
|
|
}
|
|
],
|
|
"outputHashing": "all",
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "src/environments/environment.ts",
|
|
"with": "src/environments/environment.prod.ts"
|
|
}
|
|
]
|
|
},
|
|
"development": {
|
|
"optimization": false,
|
|
"extractLicenses": false,
|
|
"sourceMap": true
|
|
},
|
|
"en": {
|
|
"localize": ["en"]
|
|
}
|
|
},
|
|
"defaultConfiguration": "production"
|
|
},
|
|
"serve": {
|
|
"builder": "@angular/build:dev-server",
|
|
"configurations": {
|
|
"production": {
|
|
"buildTarget": "atomic-design-poc:build:production"
|
|
},
|
|
"development": {
|
|
"buildTarget": "atomic-design-poc:build:development"
|
|
},
|
|
"en": {
|
|
"buildTarget": "atomic-design-poc:build:development,en"
|
|
}
|
|
},
|
|
"defaultConfiguration": "development"
|
|
},
|
|
"test": {
|
|
"builder": "@angular/build:unit-test"
|
|
},
|
|
"storybook": {
|
|
"builder": "@storybook/angular:start-storybook",
|
|
"options": {
|
|
"configDir": ".storybook",
|
|
"browserTarget": "atomic-design-poc:build",
|
|
"compodoc": true,
|
|
"compodocArgs": ["-e", "json", "-d", "."],
|
|
"port": 6006
|
|
}
|
|
},
|
|
"build-storybook": {
|
|
"builder": "@storybook/angular:build-storybook",
|
|
"options": {
|
|
"configDir": ".storybook",
|
|
"browserTarget": "atomic-design-poc:build",
|
|
"compodoc": true,
|
|
"compodocArgs": ["-e", "json", "-d", "."],
|
|
"outputDir": "storybook-static"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|