@o3r/localization 11.5.0-prerelease.2 → 11.5.0-prerelease.20

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": "@o3r/localization",
3
- "version": "11.5.0-prerelease.2",
3
+ "version": "11.5.0-prerelease.20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,11 +44,11 @@
44
44
  "@formatjs/intl-numberformat": "^8.0.2",
45
45
  "@ngrx/store": "~18.0.0",
46
46
  "@ngx-translate/core": "~15.0.0",
47
- "@o3r/core": "^11.5.0-prerelease.2",
48
- "@o3r/dynamic-content": "^11.5.0-prerelease.2",
49
- "@o3r/extractors": "^11.5.0-prerelease.2",
50
- "@o3r/logger": "^11.5.0-prerelease.2",
51
- "@o3r/schematics": "^11.5.0-prerelease.2",
47
+ "@o3r/core": "^11.5.0-prerelease.20",
48
+ "@o3r/dynamic-content": "^11.5.0-prerelease.20",
49
+ "@o3r/extractors": "^11.5.0-prerelease.20",
50
+ "@o3r/logger": "^11.5.0-prerelease.20",
51
+ "@o3r/schematics": "^11.5.0-prerelease.20",
52
52
  "@schematics/angular": "~18.2.0",
53
53
  "@yarnpkg/cli": "^4.3.1",
54
54
  "@yarnpkg/core": "^4.1.1",
@@ -60,6 +60,7 @@
60
60
  "intl-messageformat": "~10.7.0",
61
61
  "rxjs": "^7.8.1",
62
62
  "semver": "^7.5.2",
63
+ "type-fest": "^4.10.2",
63
64
  "typescript": "~5.5.4"
64
65
  },
65
66
  "peerDependenciesMeta": {
@@ -105,6 +106,9 @@
105
106
  "semver": {
106
107
  "optional": true
107
108
  },
109
+ "type-fest": {
110
+ "optional": true
111
+ },
108
112
  "typescript": {
109
113
  "optional": true
110
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/localization-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsE,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAgC7J;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAwZ/G;AAiDD,eAAO,MAAM,UAAU;kBA1CuB,MAAM,GAAG,SAAS;UA0Ca,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/localization-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsE,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAgC7J;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CA0Z/G;AAiDD,eAAO,MAAM,UAAU;kBA1CuB,MAAM,GAAG,SAAS;UA0Ca,CAAC"}
@@ -62,6 +62,7 @@ function updateLocalization(options, rootPath) {
62
62
  if (!workspaceProject.architect) {
63
63
  workspaceProject.architect = {};
64
64
  }
65
+ const projectBasePath = workspaceProject.root.replace(/[/\\]$/, '');
65
66
  workspaceProject.architect['generate-translations'] ||= {
66
67
  builder: '@o3r/localization:localization',
67
68
  options: {
@@ -70,12 +71,12 @@ function updateLocalization(options, rootPath) {
70
71
  locales: [
71
72
  'en-GB'
72
73
  ],
73
- assets: [`${mainAssetsFolder}/locales`],
74
- outputPath: `${devResourcesFolder}/localizations`
74
+ assets: [`${projectBasePath}/${mainAssetsFolder}/locales`],
75
+ outputPath: `${projectBasePath}/${devResourcesFolder}/localizations`
75
76
  },
76
77
  configurations: {
77
78
  production: {
78
- outputPath: `${distFolder}/localizations`
79
+ outputPath: `${projectBasePath}/${distFolder}/localizations`
79
80
  }
80
81
  }
81
82
  };
@@ -89,7 +90,7 @@ function updateLocalization(options, rootPath) {
89
90
  };
90
91
  const localizationAssetsConfig = {
91
92
  glob: '**/*.json',
92
- input: `${devResourcesFolder}/localizations`,
93
+ input: `${projectBasePath}/${devResourcesFolder}/localizations`,
93
94
  output: '/localizations'
94
95
  };
95
96
  const projectType = workspaceProject?.projectType || 'application';