@angular-architects/native-federation-v4 20.3.2 → 20.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-architects/native-federation-v4",
3
- "version": "20.3.2",
3
+ "version": "20.3.4",
4
4
  "generators": "./collection.json",
5
5
  "builders": "./builders.json",
6
6
  "schematics": "./collection.json",
@@ -10,8 +10,8 @@
10
10
  "url": "http://www.angulararchitects.io"
11
11
  },
12
12
  "dependencies": {
13
- "@softarc/native-federation": "4.0.0-RC3",
14
- "@softarc/native-federation-runtime": "4.0.0-RC3",
13
+ "@softarc/native-federation": "4.0.0-RC5",
14
+ "@softarc/native-federation-runtime": "4.0.0-RC5",
15
15
  "@angular-devkit/architect": "^0.2003.1",
16
16
  "@angular-devkit/build-angular": "~20.3.1",
17
17
  "@angular-devkit/core": "~20.3.1",
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,GAAG,kBAAkB,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,YAAY,CAAC,C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,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAO5F;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,OAAO,GAAG,MAAM,EAAE,EAC5B,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,cAAc,iBAiDjC"}
package/src/utils/i18n.js CHANGED
@@ -25,13 +25,14 @@ export async function translateFederationArtifacts(i18n, localize, outputPath, f
25
25
  const federationFiles = [
26
26
  ...federationResult.shared.map(s => s.outFileName),
27
27
  ...federationResult.exposes.map(e => e.outFileName),
28
+ ...Object.values(federationResult.chunks ?? {}).flat(),
28
29
  ];
29
30
  // Here, we use a glob with an exhaustive list i/o `"*.js"`
30
31
  // to improve performance
31
32
  const sourcePattern = '{' + federationFiles.join(',') + '}';
32
33
  const sourceLocalePath = path.join(outputPath, 'browser', sourceLocale);
33
34
  const localizeTranslate = path.resolve('node_modules/.bin/localize-translate');
34
- const cmd = `${localizeTranslate} -r ${sourceLocalePath} -s "${sourcePattern}" -t ${translationFiles} -o ${translationOutPath} --target-locales ${targetLocales} -l ${sourceLocale}`;
35
+ const cmd = `"${localizeTranslate}" -r "${sourceLocalePath}" -s "${sourcePattern}" -t ${translationFiles} -o "${translationOutPath}" --target-locales ${targetLocales} -l ${sourceLocale}`;
35
36
  ensureDistFolders(locales, outputPath);
36
37
  copyRemoteEntry(locales, outputPath, sourceLocalePath);
37
38
  logger.debug('Running: ' + cmd);