@itrocks/framework 1.0.0 → 1.0.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.
|
@@ -7,6 +7,7 @@ const composition_1 = require("@itrocks/composition");
|
|
|
7
7
|
const composition_2 = require("@itrocks/composition");
|
|
8
8
|
const property_select_1 = require("@itrocks/property-select");
|
|
9
9
|
const route_1 = require("@itrocks/route");
|
|
10
|
+
const translate_1 = require("@itrocks/translate");
|
|
10
11
|
const node_crypto_1 = require("node:crypto");
|
|
11
12
|
const reflect_class_1 = require("./reflect-class");
|
|
12
13
|
const reflect_property_1 = require("./reflect-property");
|
|
@@ -93,14 +94,14 @@ class ReflectionMetadataProvider {
|
|
|
93
94
|
}
|
|
94
95
|
aborted(signal);
|
|
95
96
|
const { displayOf: classDisplay } = require('@itrocks/class-view');
|
|
96
|
-
return { label: classDisplay(target) || target.name, path, properties, type: typeId(target) };
|
|
97
|
+
return { label: (0, translate_1.tr)(classDisplay(target) || target.name), path, properties, type: typeId(target) };
|
|
97
98
|
}
|
|
98
99
|
description(context, name, path, names) {
|
|
99
100
|
const { displayOf } = require('@itrocks/property-view');
|
|
100
101
|
const property = new reflect_property_1.ReflectProperty(context, name);
|
|
101
102
|
const fact = property.relation;
|
|
102
103
|
const description = {
|
|
103
|
-
kind: fact ? 'relation' : 'terminal', label: displayOf(context.type, name) || name,
|
|
104
|
+
kind: fact ? 'relation' : 'terminal', label: (0, translate_1.tr)(displayOf(context.type, name) || name),
|
|
104
105
|
name, order: names.indexOf(name), path
|
|
105
106
|
};
|
|
106
107
|
if (!fact)
|
package/package.json
CHANGED