@tencentcloud/ai-desk-customer-vue 0.7.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/README.md +246 -50
  3. package/components/CustomerServiceChat/chat-header/index-web.vue +2 -2
  4. package/components/CustomerServiceChat/index-web.vue +71 -11
  5. package/components/CustomerServiceChat/message-input/message-input-editor-web.vue +7 -1
  6. package/components/CustomerServiceChat/message-input-toolbar/emoji-dialog-mobile/emoji-dialog-mobile.vue +2 -1
  7. package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue +2 -1
  8. package/components/CustomerServiceChat/message-input-toolbar/emoji-picker/index.vue +2 -1
  9. package/components/CustomerServiceChat/message-input-toolbar/file-upload/index.vue +3 -2
  10. package/components/CustomerServiceChat/message-input-toolbar/image-upload/index.vue +4 -3
  11. package/components/CustomerServiceChat/message-input-toolbar/index-web.vue +2 -2
  12. package/components/CustomerServiceChat/message-input-toolbar/video-upload/index.vue +2 -2
  13. package/components/CustomerServiceChat/message-list/message-elements/message-bubble-web.vue +19 -0
  14. package/components/CustomerServiceChat/message-list/message-elements/message-custom.vue +6 -2
  15. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/marked.ts +4 -0
  16. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-branch.vue +13 -4
  17. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-mobile/input-mobile.vue +4 -2
  18. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-mobile/radios-mobile.vue +4 -2
  19. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-pc/input-pc.vue +4 -2
  20. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/component-pc/radio-pc.vue +5 -3
  21. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/form-mobile.vue +6 -4
  22. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-multi-form/form-pc.vue +5 -3
  23. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-product-card.vue +21 -11
  24. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-rating/message-rating-number.vue +6 -6
  25. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-rating/message-rating-star.vue +14 -14
  26. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-robot-welcome.vue +2 -6
  27. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/message-single-form/form-input.vue +6 -4
  28. package/components/CustomerServiceChat/message-list/message-elements/message-desk/message-desk-elements/styles/common.scss +1 -1
  29. package/components/CustomerServiceChat/message-list/message-elements/message-location.vue +2 -1
  30. package/components/CustomerServiceChat/message-list/message-elements/message-text.vue +1 -1
  31. package/components/CustomerServiceChat/message-list/message-elements/message-thinking.vue +2 -2
  32. package/components/CustomerServiceChat/message-list/message-tool/index-web.vue +1 -1
  33. package/components/CustomerServiceChat/message-list/message-tool/message-revoked.vue +1 -0
  34. package/components/CustomerServiceChat/message-list/scroll-button/index.vue +3 -1
  35. package/components/CustomerServiceChat/message-toolbar-button/index.vue +10 -4
  36. package/components/common/Dialog/index.vue +2 -2
  37. package/components/common/ImagePreviewer/index-web.vue +2 -2
  38. package/constant.ts +14 -0
  39. package/excluded-list.txt +0 -1
  40. package/index.ts +4 -7
  41. package/locales/en/TUIChat.ts +158 -0
  42. package/locales/en/aidesk.ts +16 -0
  43. package/locales/en/component.ts +6 -0
  44. package/locales/en/index.ts +26 -0
  45. package/locales/en/time.ts +37 -0
  46. package/locales/fil/TUIChat.ts +160 -0
  47. package/locales/fil/aidesk.ts +16 -0
  48. package/locales/fil/component.ts +6 -0
  49. package/locales/fil/index.ts +25 -0
  50. package/locales/fil/time.ts +18 -0
  51. package/locales/id/TUIChat.ts +164 -0
  52. package/locales/id/aidesk.ts +16 -0
  53. package/locales/id/component.ts +6 -0
  54. package/locales/id/index.ts +26 -0
  55. package/locales/id/time.ts +19 -0
  56. package/locales/index.ts +30 -0
  57. package/locales/ja/TUIChat.ts +165 -0
  58. package/locales/ja/aidesk.ts +16 -0
  59. package/locales/ja/component.ts +6 -0
  60. package/locales/ja/index.ts +26 -0
  61. package/locales/ja/time.ts +18 -0
  62. package/locales/ms/TUIChat.ts +165 -0
  63. package/locales/ms/aidesk.ts +16 -0
  64. package/locales/ms/component.ts +6 -0
  65. package/locales/ms/index.ts +26 -0
  66. package/locales/ms/time.ts +18 -0
  67. package/locales/ru/TUIChat.ts +158 -0
  68. package/locales/ru/aidesk.ts +16 -0
  69. package/locales/ru/component.ts +7 -0
  70. package/locales/ru/index.ts +26 -0
  71. package/locales/ru/time.ts +30 -0
  72. package/locales/th/TUIChat.ts +165 -0
  73. package/locales/th/aidesk.ts +16 -0
  74. package/locales/th/component.ts +6 -0
  75. package/locales/th/index.ts +26 -0
  76. package/locales/th/time.ts +18 -0
  77. package/locales/vi/TUIChat.ts +156 -0
  78. package/locales/vi/aidesk.ts +16 -0
  79. package/locales/vi/component.ts +6 -0
  80. package/locales/vi/index.ts +26 -0
  81. package/locales/vi/time.ts +18 -0
  82. package/locales/zh_cn/TUIChat.ts +158 -0
  83. package/locales/zh_cn/aidesk.ts +17 -0
  84. package/locales/zh_cn/component.ts +6 -0
  85. package/locales/zh_cn/index.ts +26 -0
  86. package/locales/zh_cn/time.ts +37 -0
  87. package/locales/zh_tw/TUIChat.ts +158 -0
  88. package/locales/zh_tw/aidesk.ts +16 -0
  89. package/locales/zh_tw/component.ts +6 -0
  90. package/locales/zh_tw/index.ts +26 -0
  91. package/locales/zh_tw/time.ts +37 -0
  92. package/package.json +2 -2
  93. package/server.ts +54 -17
  94. package/utils/index.ts +6 -16
  95. package/utils/utils.ts +4 -5
@@ -14,9 +14,6 @@
14
14
  class="change-wrapper"
15
15
  @click="changeBranchList()"
16
16
  >
17
- <div style="margin-right: 3px;">
18
- 换一换
19
- </div>
20
17
  <Icon :src="iconRefresh" />
21
18
  </div>
22
19
  </div>
@@ -98,7 +95,7 @@ export default {
98
95
  iconRight,
99
96
  changeBranchList,
100
97
  iconQuestion,
101
- iconRefresh
98
+ iconRefresh,
102
99
  };
103
100
  },
104
101
  };
@@ -106,7 +103,6 @@ export default {
106
103
 
107
104
  <style lang="scss">
108
105
  .welcome-card {
109
- min-width: 300px;
110
106
  max-width: 400px;
111
107
 
112
108
  .welcome-title {
@@ -125,7 +121,7 @@ export default {
125
121
  .card-title {
126
122
  display: inline-block;
127
123
  margin-left: 8px;
128
- font-size: 16px;
124
+ font-size: 14px;
129
125
  }
130
126
 
131
127
  .el-link {
@@ -7,7 +7,7 @@
7
7
  {{ props.title }}
8
8
  </div>
9
9
  <div class="form-button" @click="showForm">
10
- 立即填写
10
+ {{ TUITranslateService.t("AIDesk.立即填写") }}
11
11
  </div>
12
12
  </div>
13
13
 
@@ -26,7 +26,7 @@
26
26
  <input
27
27
  v-model="text"
28
28
  class="form-input"
29
- placeholder="请输入内容"
29
+ :placeholder="TUITranslateService.t('AIDesk.请输入内容')"
30
30
  >
31
31
  </div>
32
32
  </div>
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  <div class="form-finish-title-right">
40
40
  <Icon :src="iconSucess" style="margin:0px 4px"/>
41
- 已提交
41
+ {{ TUITranslateService.t("AIDesk.已提交") }}
42
42
  </div>
43
43
  </div>
44
44
  <div>
@@ -52,6 +52,7 @@ import vue from '../../../../../../../adapter-vue';
52
52
  import iconForm from '../../../../../../../assets/icon_form.png';
53
53
  import Icon from '../customer-icon.vue';
54
54
  import iconSucess from '../../../../../../../assets/icon_success.png';
55
+ import { TUITranslateService } from '@tencentcloud/chat-uikit-engine';
55
56
  const { computed, ref} = vue;
56
57
 
57
58
  interface Props {
@@ -94,7 +95,8 @@ export default {
94
95
  isShowForm,
95
96
  showForm,
96
97
  iconSucess,
97
- isFinish
98
+ isFinish,
99
+ TUITranslateService
98
100
  };
99
101
  },
100
102
  };
@@ -118,7 +118,7 @@
118
118
  .message-marked {
119
119
  overflow: hidden;
120
120
  word-break: break-word;
121
- white-space: pre-wrap;
121
+ white-space: normal;
122
122
  display: flex;
123
123
  flex-direction: column;
124
124
  justify-content: flex-start;
@@ -3,7 +3,7 @@
3
3
  class="message-location"
4
4
  :href="data.href"
5
5
  target="_blank"
6
- title="点击查看详情"
6
+ :title="TUITranslateService.t('AIDesk.跳转')"
7
7
  >
8
8
  <span class="el-icon-location-outline">{{ data.description }}</span>
9
9
  <img :src="data.url">
@@ -11,6 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script lang="ts" setup>
14
+ import { TUITranslateService } from '@tencentcloud/chat-uikit-engine';
14
15
  import vue from '../../../../adapter-vue';
15
16
  const { watchEffect, ref } = vue;
16
17
  const props = defineProps({
@@ -98,6 +98,6 @@ watchEffect(() => {
98
98
  text-size-adjust: none;
99
99
  font-family: PingFangSC-Regular;
100
100
  overflow-wrap: break-word;
101
- word-break: keep-all;
101
+ word-break: normal;
102
102
  }
103
103
  </style>
@@ -2,7 +2,7 @@
2
2
  <div class="message-thinking">
3
3
  <div v-for="(icon, index) in icons" :key="index">
4
4
  <transition name="fade">
5
- <Icon v-if="icon" :file="loading_message" width="16px" height="16px"/>
5
+ <Icon v-if="icon" :file="loading_message" width="14px" height="14px"/>
6
6
  </transition>
7
7
  </div>
8
8
  </div>
@@ -56,4 +56,4 @@ export default {
56
56
  .fade-enter, .fade-leave-to {
57
57
  opacity: 0;
58
58
  }
59
- </style>
59
+ </style>
@@ -120,7 +120,7 @@ const actionItems = ref([
120
120
  clickEvent: quoteMessage,
121
121
  },{
122
122
  key:'download',
123
- text: '下载',
123
+ text: TUITranslateService.t('TUIChat.下载'),
124
124
  iconUrl: downloadIcon,
125
125
  renderCondition(){
126
126
  if (!message.value) return false;
@@ -54,6 +54,7 @@ const messageEdit = () => {
54
54
  color: #999;
55
55
  font-size: 12px;
56
56
  margin-bottom: 10px;
57
+ white-space: pre;
57
58
 
58
59
  .edit {
59
60
  padding: 0 5px;
@@ -178,7 +178,9 @@ defineExpose({
178
178
  position: absolute;
179
179
  bottom: 10px;
180
180
  right: 10px;
181
- width: 92px;
181
+ width: auto;
182
+ min-width: 92px;
183
+ max-width: 115px;
182
184
  height: 28px;
183
185
  background: #fff;
184
186
  border: 1px solid #e0e0e0;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="toolbar-button-container">
3
3
  <template v-for="(item, index) in props.toolbarButtonList">
4
- <div v-if="item.renderCondition()" :key="index"
4
+ <div v-if="shouldRender(item)" :key="index"
5
5
  :class="['toolbar-button', isH5 ? 'toolbar-button-h5' : '']" @click="onClick(index)">
6
6
  <Icon v-if="item.icon" class="toolbar-button-icon" :file="item.icon" width="18px" height="18px"/>
7
7
  <div class="toolbar-button-text">
@@ -26,7 +26,13 @@ const props = withDefaults(defineProps<IProps>(), {
26
26
  });
27
27
 
28
28
  function onClick(index: number) {
29
- props.toolbarButtonList[index].clickEvent();
29
+ if (typeof props.toolbarButtonList[index].clickEvent === 'function') {
30
+ props.toolbarButtonList[index].clickEvent();
31
+ }
32
+ }
33
+
34
+ function shouldRender(item: ToolbarButtonModel) {
35
+ return typeof item.renderCondition === 'function' ? item.renderCondition() : false;
30
36
  }
31
37
 
32
38
  </script>
@@ -35,19 +41,19 @@ function onClick(index: number) {
35
41
  display: flex;
36
42
  flex-direction: row !important;
37
43
  margin: 5px !important;
38
- display: flex ;
39
44
  align-items: center ;
40
45
  }
41
46
 
42
47
  .toolbar-button {
43
48
  border: 1px solid #E7EAEF;
44
- padding: 5px;
49
+ padding: 5px 10px;
45
50
  border-radius: 20px;
46
51
  cursor: pointer;
47
52
  display: flex;
48
53
  align-items: center;
49
54
  margin-left: 10px;
50
55
  white-space: nowrap;
56
+ user-select: none;
51
57
  }
52
58
 
53
59
  .toolbar-button-h5 {
@@ -36,13 +36,13 @@
36
36
  class="btn btn-cancel"
37
37
  @click="close"
38
38
  >
39
- {{ TUITranslateService.t("component.取消") }}
39
+ {{ TUITranslateService.t('取消') }}
40
40
  </button>
41
41
  <button
42
42
  class="btn btn-default"
43
43
  @click="submit"
44
44
  >
45
- {{ TUITranslateService.t("component.确定") }}
45
+ {{ TUITranslateService.t('确定') }}
46
46
  </button>
47
47
  </footer>
48
48
  </main>
@@ -374,7 +374,7 @@ const save = () => {
374
374
  const imageSrc = imageMessage?.payload?.imageInfoArray[0]?.url;
375
375
  if (!imageSrc) {
376
376
  Toast({
377
- message: TUITranslateService.t('component.图片 url 不存在'),
377
+ message: TUITranslateService.t('Component.图片 url 不存在'),
378
378
  type: TOAST_TYPE.ERROR,
379
379
  });
380
380
  return;
@@ -396,7 +396,7 @@ const downloadImgInWeb = (src: string) => {
396
396
  const imageFormat: number = imageMessage?.payload?.imageFormat;
397
397
  if (!imageFormatMap.has(imageFormat)) {
398
398
  Toast({
399
- message: TUITranslateService.t('component.暂不支持下载此类型图片'),
399
+ message: TUITranslateService.t('Component.暂不支持下载此类型图片'),
400
400
  type: TOAST_TYPE.ERROR,
401
401
  });
402
402
  return;
package/constant.ts CHANGED
@@ -114,6 +114,7 @@ export const ROBOT_STATUS = {
114
114
  // message type
115
115
  export const TYPES = {
116
116
  MSG_CUSTOM: 'TIMCustomElem',
117
+ MSG_GROUP_TIP:'TIMGroupTipElem'
117
118
  };
118
119
 
119
120
  export const EMOJI_TYPE = {
@@ -121,3 +122,16 @@ export const EMOJI_TYPE = {
121
122
  BIG: 'big',
122
123
  CUSTOM: 'CUSTOM',
123
124
  };
125
+
126
+ export const WHITE_LIST = [
127
+ CUSTOM_MESSAGE_SRC.MENU,
128
+ CUSTOM_MESSAGE_SRC.BRANCH,
129
+ CUSTOM_MESSAGE_SRC.BRANCH_NUMBER,
130
+ CUSTOM_MESSAGE_SRC.FROM_INPUT,
131
+ CUSTOM_MESSAGE_SRC.PRODUCT_CARD,
132
+ CUSTOM_MESSAGE_SRC.ROBOT_MSG,
133
+ CUSTOM_MESSAGE_SRC.RICH_TEXT,
134
+ CUSTOM_MESSAGE_SRC.STREAM_TEXT,
135
+ CUSTOM_MESSAGE_SRC.MULTI_BRANCH,
136
+ CUSTOM_MESSAGE_SRC.MULTI_FORM,
137
+ ];
package/excluded-list.txt CHANGED
@@ -1,5 +1,4 @@
1
1
  .\node_modules\@tencentcloud\ai-desk-customer-vue\node_modules
2
- .\node_modules\@tencentcloud\ai-desk-customer-vue\package.json
3
2
  .\node_modules\@tencentcloud\ai-desk-customer-vue\excluded-list.txt
4
3
 
5
4
 
package/index.ts CHANGED
@@ -1,8 +1,6 @@
1
- declare const uni: any;
2
1
  import TUICustomerPluginServer from './server';
3
2
  import { isMessageInvisible } from './utils/index';
4
- import CustomerChatWeb from './components/CustomerServiceChat/index-web.vue';
5
-
3
+ import CustomerServiceChat from './components/CustomerServiceChat/index-web.vue';
6
4
 
7
5
  const TUICustomerServer = TUICustomerPluginServer.getInstance();
8
6
 
@@ -10,12 +8,11 @@ const isCustomerServicePluginMessage = TUICustomerServer.isCustomerServicePlugin
10
8
 
11
9
  const isCustomerConversation = TUICustomerServer.isCustomerConversation.bind(TUICustomerServer);
12
10
 
13
- let CustomerServiceChat = CustomerChatWeb;
14
-
15
-
16
11
  export {
17
12
  isCustomerServicePluginMessage,
18
13
  isMessageInvisible,
19
14
  CustomerServiceChat,
20
15
  isCustomerConversation
21
- };
16
+ };
17
+
18
+ export default TUICustomerServer;
@@ -0,0 +1,158 @@
1
+ const TUIChat = {
2
+ '按Enter发送,Ctrl+Enter换行': 'Press Enter to send a message and Ctrl+Enter to start a new line',
3
+ '表情': '[Face]',
4
+ '查看更多': 'View more',
5
+ '撤回': 'Recall',
6
+ '撤回了一条消息': ' recalled a message',
7
+ '打开': 'Open',
8
+ '单击下载': 'Click download',
9
+ '下载':'Download',
10
+ '点此投诉': 'Complain',
11
+ '点击处理': 'Click action',
12
+ '对方正在输入': 'Typing...',
13
+ '发起群视频': 'Make group video call',
14
+ '发起群语音': 'Make group voice call',
15
+ '发起通话': 'Start Call',
16
+ '发送失败': 'send failed',
17
+ '复制': 'Copy',
18
+ '复制成功': 'Copied to clipboard',
19
+ '该消息不存在': 'The message does not exist',
20
+ '关闭阅读状态': 'Read status closed',
21
+ '管理员开启全员禁言': 'The admin enables Mute All',
22
+ '欢迎使用TUICallKit': 'Welcome to TUICallKit',
23
+ '回到最新位置': 'Back to the latest location',
24
+ '回复': 'Reply',
25
+ '回复详情': 'Replies',
26
+ '集成TUICallKit': ' Integrate TUICallKit ',
27
+ '检测到您暂未集成TUICallKit,无法体验音视频通话功能': 'It is detected that you have not integrated TUI CallKit yet, so you cannot experience the audio and video call. ',
28
+ '结束群聊': 'Edit Group Call',
29
+ '进行体验': 'to experience.',
30
+ '经度': 'Longitude',
31
+ '拒绝': 'Reject',
32
+ '拒绝通话': 'Decline Call',
33
+ '开通腾讯实时音视频服务': 'Integration Tencent Real-Time Communication',
34
+ '聊天记录': '[Chat history]',
35
+ '描述': 'Description',
36
+ '内容包含敏感词汇': 'Content contains sensitive words',
37
+ '您': 'You',
38
+ '您当前购买使用的套餐包暂未开通此功能': 'The package you purchased does not support this ability.',
39
+ '您当前购买使用的套餐包暂未开通群消息已读回执功能': 'The package you purchased does not support the read receipt of group messages.',
40
+ '您当前购买使用的套餐包暂未开通在线用户列表功能': 'The package you purchased does not support the online user list.',
41
+ '您已被管理员禁言': 'You have been muted by the admin',
42
+ '您有': 'You have',
43
+ '请点击': 'Please click',
44
+ '请输入消息': 'Enter a message',
45
+ '取消': 'Cancel',
46
+ '取消通话': 'Cancel Call',
47
+ '全部已读': 'All read',
48
+ '确定': 'Submit',
49
+ '确认重发该消息?': 'Confirm to resend the message?',
50
+ '人关闭阅读状态': ' read status closed',
51
+ '人未读': ' unread',
52
+ '人已读': ' read',
53
+ '删除': 'Delete',
54
+ '涉及敏感内容': 'Sensitive content',
55
+ '申请加入': 'Application for join in',
56
+ '视频': '[video]',
57
+ '视频通话': 'Video Call',
58
+ '条回复': 'replies',
59
+ '条入群申请': 'Item group application',
60
+ '条新消息': ' new messages',
61
+ '通话时长': 'Duration',
62
+ '同意': 'Agree',
63
+ '图片': '[Image]',
64
+ '图片消息失败,无效的图片格式': 'Image message failed, invalid image format.',
65
+ '纬度': 'Latitude',
66
+ '未读': 'Unread',
67
+ '位置': '[Location]',
68
+ '文件': '[File]',
69
+ '文件不存在,请检查文件路径是否正确': 'The file does not exist, please check if the file path is correct.',
70
+ '文件大小超出了限制,如果上传文件,最大限制是100MB': 'The file size exceeds the limit; if uploading a file, the maximum limit is 100MB.',
71
+ '文件消息失败,禁止发送违规封禁的文件': 'File message failed, sending prohibited and banned files is not allowed.',
72
+ '我': 'I',
73
+ '无法查看': 'unable to view',
74
+ '无法定位到原消息': 'Unable to navigate to the original message',
75
+ '无法收听': 'unable to listen',
76
+ '正在加载': 'Loading...',
77
+ '加载结束': 'Load end',
78
+ '无应答': 'No Answer',
79
+ '系统消息': 'System message',
80
+ '消息': '[message]',
81
+ '消息或者资料中文本存在敏感内容,发送失败': 'Sensitive content found in the message or information text, sending failed.',
82
+ '消息详情': 'Message Detail',
83
+ '消息长度超出限制,消息长度不要超过12K': 'Message length exceeds the limit; please keep the message length under 12K.',
84
+ '消息中图片存在敏感内容,发送失败': ' Sensitive content is found in the picture in the message, sending failed.',
85
+ '选择提醒的人': 'Select Contact',
86
+ '已读': 'Read',
87
+ '已过撤回时限': 'Withdrawal deadline has passed',
88
+ '已接听': 'Answered',
89
+ '已拒绝': 'Rejected',
90
+ '已同意': 'Approved',
91
+ '引用': 'Reference',
92
+ '引用失败': 'quote failed',
93
+ '语音': '[Voice]',
94
+ '语音通话': 'Voice Call',
95
+ '重新编辑': 'Re-edit',
96
+ '重新发送': 'Resend',
97
+ '转发': 'Forward',
98
+ '翻译': 'Translate',
99
+ '转文字': 'Convert',
100
+ '隐藏': 'Hidden',
101
+ '转发给': 'Forward to',
102
+ '自定义': '[custom message]',
103
+ '自定义消息': 'Custom message',
104
+ '腾讯云 IM': 'Tencent Cloud Chat',
105
+ '空': 'Empty',
106
+ '文本包含本地审核拦截词': 'Text contains local moderation blocking words',
107
+ '按住说话': 'Hold to speak',
108
+ '抬起发送': 'Release to send',
109
+ '抬起取消': 'Release to cancel',
110
+ '正在录音': 'Recording',
111
+ '继续上滑可取消': 'Continue to swipe to cancel',
112
+ '松开手指 取消发送': 'Release to cancel',
113
+ '此机型暂不支持复制功能': 'This model does not support the copy',
114
+ '请开通翻译功能': 'Please open the translation feature',
115
+ '请开通语音转文字功能': 'Please open the convert feature',
116
+ '翻译中': 'Translating',
117
+ '转换中': 'Converting',
118
+ '由IM提供翻译支持': 'support by IM',
119
+ '所有人': 'All',
120
+ '已达到表情回应上限数量': 'You have reached the max reaction limit',
121
+ '等': 'and others',
122
+ '人': 'users',
123
+ '返回': 'Back',
124
+ '关闭': 'Close',
125
+ '多选': 'Select',
126
+ '合并转发': 'Combine Forward',
127
+ '逐条转发': 'One-By-One Forward',
128
+ '未选择消息': 'No message selected',
129
+ '[草稿]': '[Drafts]',
130
+ '[消息]': '[Message]',
131
+ '[文本]': '[Text]',
132
+ '[自定义消息]': '[Custom Message]',
133
+ '[图片]': '[Image]',
134
+ '[音频]': '[Voice]',
135
+ '[语音]': '[Voice]',
136
+ '[视频]': '[Video]',
137
+ '[文件]': '[File]',
138
+ '[位置]': '[Location]',
139
+ '[地理位置]': '[Location]',
140
+ '[动画表情]': '[Animated Sticker]',
141
+ '[群提示]': '[Group Tip]',
142
+ '[群提示消息]': '[Group Notification]',
143
+ '[聊天记录]': '[Chat History]',
144
+ '[机器人自定义消息]': '[Robot Custom Message]',
145
+ '引用内容已撤回': 'The quoted message has been withdrawn',
146
+ '群聊的聊天记录': 'Chat history for Group Chat',
147
+ '和': 'and',
148
+ '的聊天记录': 'chat history',
149
+ '请升级IMSDK到v2.10.1或更高版本查看此消息': 'Please upgrade IMSDK to v2.10.1 or higher to view this message',
150
+ '该群聊已被解散': 'The group has been dismissed',
151
+ '您已被管理员移出群聊': 'You have been removed from the group by the admin.',
152
+ '您已退出该群聊': 'You have left the group.',
153
+ '您已被禁止聊天': 'you have been forbidden to speak',
154
+ '账号被强制下线': 'Account forcibly logged out',
155
+ '登录失败': 'Login failed',
156
+ };
157
+
158
+ export default TUIChat;
@@ -0,0 +1,16 @@
1
+ const AIDesk = {
2
+ "结束人工会话": "end",
3
+ "转人工服务": "human service",
4
+ "跳转": "Goto",
5
+ "立即填写": "Fill now",
6
+ "已提交": "Submitted",
7
+ "提交": "Submit",
8
+ "查看内容": "View content",
9
+ "请填写必填项": "Please fill in the required fields",
10
+ "Hi,我是": "Hi, I'm ",
11
+ "请输入内容":"Please enter the content",
12
+ "如果满意请给好评哦~":"If you're satisfied, please give a good review~",
13
+ "请对本次服务进行评价": "Please rate this service",
14
+ "提交评价": "Feedback",
15
+ }
16
+ export default AIDesk;
@@ -0,0 +1,6 @@
1
+ const Component = {
2
+ "图片 url 不存在": "Image url does not exist",
3
+ "暂不支持下载此类型图片": "Downloading this type of image is not currently supported",
4
+ }
5
+
6
+ export default Component;
@@ -0,0 +1,26 @@
1
+ import TUIChat from './TUIChat';
2
+ import Component from './component';
3
+ import Time from './time';
4
+ import AIDesk from './aidesk';
5
+
6
+ const messages = {
7
+ en: {
8
+ "取消": 'Cancel',
9
+ "确定": 'Confirm',
10
+ "发送": 'Send',
11
+ "系统通知": 'System notification',
12
+ "关闭": 'Close',
13
+ "图片": 'Image',
14
+ "文件": 'File',
15
+ "表情": 'Emoji',
16
+ "视频": 'Video',
17
+ "录制": 'Record',
18
+ "拍照": 'Take a photo',
19
+ AIDesk,
20
+ TUIChat,
21
+ Component,
22
+ Time,
23
+ },
24
+ };
25
+
26
+ export default messages;
@@ -0,0 +1,37 @@
1
+ const Time = {
2
+ "周": "week(s) ",
3
+ "天": "day(s)",
4
+ "小时": "hour(s) ",
5
+ "分钟": "minute(s)",
6
+ "刚刚": "Just now",
7
+ "前": " ago",
8
+ "昨天": "Yesterday",
9
+ "星期一": "Monday",
10
+ "星期二": "Tuesday",
11
+ "星期三": "Wednesday",
12
+ "星期四": "Thursday",
13
+ "星期五": "Friday",
14
+ "星期六": "Saturday",
15
+ "星期日": "Sunday",
16
+ "一月": "January",
17
+ "二月": "February",
18
+ "三月": "March",
19
+ "四月": "April",
20
+ "五月": "May",
21
+ "六月": "June",
22
+ "七月": "July",
23
+ "八月": "August",
24
+ "九月": "September",
25
+ "十月": "October",
26
+ "十一月": "November",
27
+ "十二月": "December",
28
+ "一": "Mon",
29
+ "二": "Tues",
30
+ "三": "Wed",
31
+ "四": "Thur",
32
+ "五": "Fri",
33
+ "六": "Sat",
34
+ "日": "Sun",
35
+ }
36
+
37
+ export default Time;