@adminforth/i18n 1.0.16-next.0 → 1.0.18-next.1

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/dist/index.js CHANGED
@@ -412,7 +412,7 @@ ${JSON.stringify(strings.reduce((acc, s) => {
412
412
  updateStrings[translation[this.primaryKeyFieldName]].updates[this.trFieldNames[lang]] = translatedStr;
413
413
  }
414
414
  }
415
- return res.length;
415
+ return Object.keys(updateStrings).length;
416
416
  });
417
417
  const langsInvolved = new Set(Object.keys(needToTranslateByLang));
418
418
  let totalTranslated = 0;
package/index.ts CHANGED
@@ -490,7 +490,7 @@ ${
490
490
  }
491
491
  }
492
492
 
493
- return res.length;
493
+ return Object.keys(updateStrings).length;
494
494
  }
495
495
 
496
496
  const langsInvolved = new Set(Object.keys(needToTranslateByLang));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "1.0.16-next.0",
3
+ "version": "1.0.18-next.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
7
  "scripts": {
8
- "build": "tsc && rsync -av --exclude 'node_modules' custom dist/ && npm version patch",
9
- "rollout": "npm run build && npm publish --access public",
8
+ "build": "tsc && rsync -av --exclude 'node_modules' custom dist/",
9
+ "rollout": "npm run build && npm version patch && npm publish --access public",
10
10
  "rollout-next": "npm run build && npm version prerelease --preid=next && npm publish --tag next",
11
11
  "prepare": "npm link adminforth"
12
12
  },