ronds-metadata 1.3.40 → 1.3.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,14 @@ import React from "react";
4
4
  /*
5
5
  * @Author: wangxian
6
6
  * @Date: 2022-05-26 08:50:06
7
- * @LastEditTime: 2023-09-19 14:08:18
7
+ * @LastEditTime: 2024-04-26 16:38:22
8
8
  */
9
9
  import { DragSource } from 'react-dnd';
10
10
  import { GlobalOutlined } from '@ant-design/icons';
11
11
  import Icon from '../../../comps/Icons';
12
12
  import { DRAGGABLE_COMPONENT } from '../constant';
13
13
  import '../index.less';
14
+ import { tr } from '../../../framework/locale';
14
15
  var InnerNodeTitle = function InnerNodeTitle(props) {
15
16
  var _data$param, _data$param2;
16
17
  var data = props.data,
@@ -30,7 +31,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
30
31
  overflowX: 'hidden',
31
32
  wordBreak: 'break-all'
32
33
  }
33
- }, /*#__PURE__*/React.createElement("span", null, data === null || data === void 0 ? void 0 : (_data$param2 = data.param) === null || _data$param2 === void 0 ? void 0 : _data$param2.readme)) : undefined
34
+ }, /*#__PURE__*/React.createElement("span", null, tr(data === null || data === void 0 ? void 0 : (_data$param2 = data.param) === null || _data$param2 === void 0 ? void 0 : _data$param2.readme))) : undefined
34
35
  }, /*#__PURE__*/React.createElement("div", {
35
36
  className: "icon",
36
37
  style: {
@@ -42,7 +43,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
42
43
  className: "notation"
43
44
  }, /*#__PURE__*/React.createElement("div", {
44
45
  className: "name"
45
- }, data.name))))));
46
+ }, tr(data.name)))))));
46
47
  };
47
48
  var NodeTitle = DragSource(DRAGGABLE_COMPONENT, {
48
49
  beginDrag: function beginDrag(props) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.40",
4
+ "version": "1.3.41",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",