@isardsat/editorial-server 6.9.0 → 6.10.0

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.
@@ -253,8 +253,8 @@ export function createDataRoutes(config, storage) {
253
253
  if (lang) {
254
254
  const messages = await storage.getLocalisationMessages(lang);
255
255
  for (const [key, message] of Object.entries(messages)) {
256
- const [, typeKey, fieldKey] = key.split(".");
257
- if (typeKey === id) {
256
+ const [contentKey, typeKey, fieldKey] = key.split(".");
257
+ if (contentKey === itemType && typeKey === id) {
258
258
  item[fieldKey] = message.defaultMessage;
259
259
  }
260
260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isardsat/editorial-server",
3
- "version": "6.9.0",
3
+ "version": "6.10.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "hono": "^4.9.8",
15
15
  "yaml": "^2.8.1",
16
16
  "zod": "^4.1.11",
17
- "@isardsat/editorial-admin": "^6.9.0",
18
- "@isardsat/editorial-common": "^6.9.0"
17
+ "@isardsat/editorial-admin": "^6.10.0",
18
+ "@isardsat/editorial-common": "^6.10.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@tsconfig/node22": "^22.0.0",