@jskit-ai/console-core 0.2.5 → 0.2.7
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/CHANGELOG.md +12 -0
- package/locales/en.json +3 -0
- package/package.json +7 -7
- package/src/shared/operationMessages.js +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- The console resources' validation feedback names the catalog key `jskit.console.feedback.validationFailed` instead of plain English; JSKIT's forms render it with `text()`, so the English shown is unchanged. `apiValidation` is sent in the coded form with `validation_failed`.
|
|
6
|
+
|
|
7
|
+
### New message keys (1)
|
|
8
|
+
|
|
9
|
+
<details><summary>Key list</summary>
|
|
10
|
+
|
|
11
|
+
- `jskit.console.feedback.validationFailed`
|
|
12
|
+
|
|
13
|
+
</details>
|
|
14
|
+
|
|
3
15
|
## 0.2.0 - 2026-10-29
|
|
4
16
|
|
|
5
17
|
- Translation ready: every user-visible text is a message key with its English in `locales/en.json`, so an app translates it by supplying translation files only. With no translations, texts and behaviour are unchanged. See the guide "Translating a JSKIT app".
|
package/locales/en.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/console-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test --test-concurrency=1"
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"./locales/en.json": "./locales/en.json"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
16
|
-
"@jskit-ai/resource-crud-core": "0.1.
|
|
17
|
-
"@jskit-ai/users-core": "0.2.
|
|
15
|
+
"@jskit-ai/database-runtime": "0.1.255",
|
|
16
|
+
"@jskit-ai/resource-crud-core": "0.1.197",
|
|
17
|
+
"@jskit-ai/users-core": "0.2.7",
|
|
18
18
|
"json-rest-schema": "^1.0.17"
|
|
19
19
|
},
|
|
20
20
|
"description": "Console runtime: console settings schema, bootstrap flags, actions, and HTTP routes.",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@jskit-ai/auth-core": "0.2.
|
|
100
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
101
|
-
"@jskit-ai/kernel": "0.2.
|
|
99
|
+
"@jskit-ai/auth-core": "0.2.6",
|
|
100
|
+
"@jskit-ai/http-runtime": "0.2.6",
|
|
101
|
+
"@jskit-ai/kernel": "0.2.6"
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* The messages a resource's operations show when their input fails validation:
|
|
3
|
+
* validation is a message key the client renders; apiValidation is the API's
|
|
4
|
+
* English with its code.
|
|
5
|
+
*/
|
|
2
6
|
const OPERATION_MESSAGES = Object.freeze({
|
|
3
|
-
validation: "
|
|
4
|
-
apiValidation: "Validation failed."
|
|
7
|
+
validation: "jskit.console.feedback.validationFailed",
|
|
8
|
+
apiValidation: Object.freeze({ code: "validation_failed", message: "Validation failed." })
|
|
5
9
|
});
|
|
6
10
|
|
|
7
11
|
export { OPERATION_MESSAGES };
|