@myun/gimi-chat 0.9.42 → 0.9.43
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.
|
@@ -143,6 +143,8 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
|
|
|
143
143
|
// }
|
|
144
144
|
// }));
|
|
145
145
|
}, [isMsgRecieving, isLastMessage, dispatch, messageId, resources, type]);
|
|
146
|
+
var typeLabel = type === 'video' ? t('knowledgeTrace.type.video') : type === 'product' ? t('knowledgeTrace.type.course') : type === 'information' ? t('knowledgeTrace.type.information') : t('knowledgeTrace.type.document');
|
|
147
|
+
var unit = type === 'information' ? t('trace.unit.article') : t('trace.unit.piece');
|
|
146
148
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
|
|
147
149
|
content: /*#__PURE__*/React.createElement(React.Fragment, null, hoverPanelContent),
|
|
148
150
|
visible: showPanel,
|
|
@@ -157,7 +159,8 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
|
|
|
157
159
|
url: iconUrl
|
|
158
160
|
}), /*#__PURE__*/React.createElement("span", null, t('trace.countByType', {
|
|
159
161
|
count: resources === null || resources === void 0 ? void 0 : resources.length,
|
|
160
|
-
|
|
162
|
+
unit: unit,
|
|
163
|
+
type: typeLabel
|
|
161
164
|
})))), /*#__PURE__*/React.createElement(TryWatch, {
|
|
162
165
|
item: curTrace,
|
|
163
166
|
type: type,
|
|
@@ -60,6 +60,8 @@ declare const zhCN: {
|
|
|
60
60
|
'trace.tryFull': string;
|
|
61
61
|
'trace.iconAlt': string;
|
|
62
62
|
'trace.countByType': string;
|
|
63
|
+
'trace.unit.piece': string;
|
|
64
|
+
'trace.unit.article': string;
|
|
63
65
|
'file.totalInConversation': string;
|
|
64
66
|
'file.download': string;
|
|
65
67
|
'file.previewTitle': string;
|
|
@@ -9,7 +9,7 @@ var zhCN = {
|
|
|
9
9
|
'knowledgeTrace.type.document': '文档',
|
|
10
10
|
'knowledgeTrace.type.video': '视频',
|
|
11
11
|
'knowledgeTrace.type.course': '课程',
|
|
12
|
-
'knowledgeTrace.type.information': '
|
|
12
|
+
'knowledgeTrace.type.information': '溯源内容',
|
|
13
13
|
'reasoningSearch.summary': '搜索结果',
|
|
14
14
|
'chatInput.maxLength': '最多输入10000个字符',
|
|
15
15
|
'chatInput.uploadLimitOne': '最多上传一个文件哦',
|
|
@@ -59,7 +59,9 @@ var zhCN = {
|
|
|
59
59
|
'trace.tryFullTips': '您当前可试看部分内容,点击右侧按钮查看完整内容。',
|
|
60
60
|
'trace.tryFull': '查看',
|
|
61
61
|
'trace.iconAlt': '知识库溯源图标',
|
|
62
|
-
'trace.countByType': '{{count}}
|
|
62
|
+
'trace.countByType': '{{count}}{{unit}}{{type}}',
|
|
63
|
+
'trace.unit.piece': '个',
|
|
64
|
+
'trace.unit.article': '篇',
|
|
63
65
|
'file.totalInConversation': '本对话共{{count}}个文档',
|
|
64
66
|
'file.download': '下载',
|
|
65
67
|
'file.previewTitle': '文档预览',
|