@myun/gimi-chat 0.9.41 → 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,
|
|
@@ -9,7 +9,7 @@ var enUS = {
|
|
|
9
9
|
'knowledgeTrace.type.document': 'Document',
|
|
10
10
|
'knowledgeTrace.type.video': 'Video',
|
|
11
11
|
'knowledgeTrace.type.course': 'Courses',
|
|
12
|
-
'knowledgeTrace.type.information': '
|
|
12
|
+
'knowledgeTrace.type.information': 'Article Source',
|
|
13
13
|
'reasoningSearch.summary': 'Search Results',
|
|
14
14
|
'chatInput.maxLength': 'Maximum 10000 characters',
|
|
15
15
|
'chatInput.uploadLimitOne': 'Upload limit is one file',
|
|
@@ -33,14 +33,14 @@ var enUS = {
|
|
|
33
33
|
'trace.video.coverAlt': 'Video cover',
|
|
34
34
|
'trace.video.playAlt': 'Play button',
|
|
35
35
|
'trace.video.segment': 'Video segment: {{start}} - {{end}}',
|
|
36
|
-
'trace.video.invalid': '
|
|
36
|
+
'trace.video.invalid': 'Invalid',
|
|
37
37
|
'trace.video.total': '{{count}} videos in this conversation',
|
|
38
38
|
'trace.course.coverAlt': 'Course cover',
|
|
39
|
-
'trace.course.invalid': '
|
|
39
|
+
'trace.course.invalid': 'Invalid',
|
|
40
40
|
'trace.course.total': '{{count}} courses in this conversation',
|
|
41
41
|
'trace.document.coverAlt': 'Document image',
|
|
42
|
-
'trace.document.invalid': '
|
|
43
|
-
'trace.information.invalid': '
|
|
42
|
+
'trace.document.invalid': 'Invalid',
|
|
43
|
+
'trace.information.invalid': 'Invalid',
|
|
44
44
|
'trace.document.total': '{{count}} documents in this conversation',
|
|
45
45
|
'trace.document.unsupported': 'This file type cannot be previewed',
|
|
46
46
|
'trace.document.unsupportedTips': 'This file format does not support trial preview. You can download it and view it with other software.\nTo view the full document, click the "View" button.',
|
|
@@ -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': '最多上传一个文件哦',
|
|
@@ -33,14 +33,14 @@ var zhCN = {
|
|
|
33
33
|
'trace.video.coverAlt': '视频封面图片',
|
|
34
34
|
'trace.video.playAlt': '播放按钮图片',
|
|
35
35
|
'trace.video.segment': '视频片段: {{start}} - {{end}}',
|
|
36
|
-
'trace.video.invalid': '
|
|
36
|
+
'trace.video.invalid': '已失效',
|
|
37
37
|
'trace.video.total': '本对话共{{count}}个视频',
|
|
38
38
|
'trace.course.coverAlt': '课程封面',
|
|
39
|
-
'trace.course.invalid': '
|
|
39
|
+
'trace.course.invalid': '已失效',
|
|
40
40
|
'trace.course.total': '本对话共{{count}}个课程',
|
|
41
41
|
'trace.document.coverAlt': '文档图片',
|
|
42
|
-
'trace.document.invalid': '
|
|
43
|
-
'trace.information.invalid': '
|
|
42
|
+
'trace.document.invalid': '已失效',
|
|
43
|
+
'trace.information.invalid': '已失效',
|
|
44
44
|
'trace.document.total': '本对话共{{count}}个文档',
|
|
45
45
|
'trace.document.unsupported': '当前文件不支持预览',
|
|
46
46
|
'trace.document.unsupportedTips': '文件格式不支持在线试看,您可以下载后用其他软件查看。\n如需查看完整文档,请点击“去查看”按钮。',
|
|
@@ -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': '文档预览',
|