@nocobase/plugin-error-handler 1.3.46-beta → 1.3.47-beta

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.
@@ -8,9 +8,9 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.3.46-beta",
11
+ "@nocobase/client": "1.3.47-beta",
12
12
  "@formily/json-schema": "2.3.0",
13
- "@nocobase/database": "1.3.46-beta",
14
- "@nocobase/server": "1.3.46-beta",
13
+ "@nocobase/database": "1.3.47-beta",
14
+ "@nocobase/server": "1.3.47-beta",
15
15
  "lodash": "4.17.21"
16
16
  };
@@ -1,6 +1,6 @@
1
1
  {
2
- "unique violation": "{{field}} must be unique",
3
- "notNull violation": "notNull violation",
2
+ "unique violation": "{{field}} already exists",
3
+ "notNull violation": "{{field}} cannot be null",
4
4
  "Validation error": "{{field}} validation error",
5
5
  "notNull Violation": "{{field}} cannot be null"
6
6
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "unique violation": "{{field}} 字段值是唯一的",
2
+ "unique violation": "{{field}} 字段值已存在",
3
3
  "notNull violation": "{{field}} 字段不能为空",
4
4
  "Validation error": "{{field}} 字段规则验证失败"
5
5
  }
@@ -83,7 +83,7 @@ class PluginErrorHandlerServer extends import_server.Plugin {
83
83
  return {
84
84
  message: t(err2.type, {
85
85
  ns: this.i18nNs,
86
- field: t(title, { ns: "lm-collections" })
86
+ field: t(title, { ns: ["lm-collections", "client"] })
87
87
  })
88
88
  };
89
89
  })
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "错误处理器",
5
5
  "description": "Handling application errors and exceptions.",
6
6
  "description.zh-CN": "处理应用程序中的错误和异常。",
7
- "version": "1.3.46-beta",
7
+ "version": "1.3.47-beta",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "devDependencies": {
@@ -23,5 +23,5 @@
23
23
  "url": "git+https://github.com/nocobase/nocobase.git",
24
24
  "directory": "packages/plugin-error-handler"
25
25
  },
26
- "gitHead": "f63f7433de426ec069b71c1eb9ed24a17784e990"
26
+ "gitHead": "dcc260ecf21d9fcb04ef56f2ec8c4de23a8484f3"
27
27
  }