You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch `--localize` from a bool flag to an optional comma-separated
list so CI builds can emit just the locales they need.
ngc-rs build --localize # all i18n.locales (unchanged)
ngc-rs build --localize=en-US,de # only those two subdirs
The architect builder now serializes `localize: ['en', 'de']` as
`--localize=en,de` instead of dropping the array and warning. An empty
array still falls back to "all locales" to match `@angular/build`.
`fan_out_locales` validates each subset entry against the source locale
and `i18n.locales` keys; an unknown locale fails the build with a
clear error rather than silently producing an empty `dist/`.
"description": "Generate per-locale builds. When set to true ngc-rs is invoked with `--localize` and emits one output tree per `i18n.locales` entry in angular.json. Selecting a locale subset (array form) is NOT yet honoured by ngc-rs and logs a warning."
278
+
"description": "Generate per-locale builds. When set to true ngc-rs is invoked with `--localize` and emits one output tree per `i18n.locales` entry in angular.json. The array form `[\"en\", \"de\"]` serializes as `--localize=en,de` and restricts the output to the listed locales (useful for trimming CI builds)."
Copy file name to clipboardExpand all lines: packages/builder/src/build/options.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -175,11 +175,6 @@ export function translateOptions(
175
175
'The `outputHashing` option is hardcoded by ngc-rs per `--configuration` (production hashes bundles, development does not); the option value is ignored.',
176
176
);
177
177
}
178
-
if(Array.isArray(raw.localize)){
179
-
warnings.push(
180
-
'Selecting a locale subset via `localize` array is not yet honoured by ngc-rs; all locales declared in `angular.json` `i18n.locales` are emitted.',
0 commit comments