@adminforth/i18n 1.3.2 → 1.3.3

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/build.log CHANGED
@@ -16,5 +16,5 @@ custom/package-lock.json
16
16
  custom/package.json
17
17
  custom/tsconfig.json
18
18
 
19
- sent 31,052 bytes received 229 bytes 62,562.00 bytes/sec
20
- total size is 30,197 speedup is 0.97
19
+ sent 31,064 bytes received 229 bytes 62,586.00 bytes/sec
20
+ total size is 30,197 speedup is 0.96
package/dist/index.js CHANGED
@@ -366,8 +366,9 @@ export default class I18nPlugin extends AdminForthPlugin {
366
366
  id: 'translate_all',
367
367
  label: 'Translate selected',
368
368
  icon: 'flowbite:language-outline',
369
+ badge: 'AI',
369
370
  // if optional `confirm` is provided, user will be asked to confirm action
370
- confirm: 'Are you sure you want to translate selected items?',
371
+ confirm: 'Are you sure you want to translate selected items? Only empty strings will be translated',
371
372
  allowed: (_a) => __awaiter(this, [_a], void 0, function* ({ resource, adminUser, selectedIds, allowedActions }) {
372
373
  process.env.HEAVY_DEBUG && console.log('allowedActions', JSON.stringify(allowedActions));
373
374
  return allowedActions.edit;
package/index.ts CHANGED
@@ -417,8 +417,9 @@ export default class I18nPlugin extends AdminForthPlugin {
417
417
  id: 'translate_all',
418
418
  label: 'Translate selected',
419
419
  icon: 'flowbite:language-outline',
420
+ badge: 'AI',
420
421
  // if optional `confirm` is provided, user will be asked to confirm action
421
- confirm: 'Are you sure you want to translate selected items?',
422
+ confirm: 'Are you sure you want to translate selected items? Only empty strings will be translated',
422
423
  allowed: async ({ resource, adminUser, selectedIds, allowedActions }) => {
423
424
  process.env.HEAVY_DEBUG && console.log('allowedActions', JSON.stringify(allowedActions));
424
425
  return allowedActions.edit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",