diff --git a/lang/en-us/ai-chat/index.js b/lang/en-us/ai-chat/index.js new file mode 100644 index 0000000..b3ca06d --- /dev/null +++ b/lang/en-us/ai-chat/index.js @@ -0,0 +1,99 @@ +export const lang = { + //title for each page + title: 'AI Customer Service', + + // ====== Common ====== + cancel: 'Cancel', + save: 'Save', + send: 'Send', + retry: 'Retry', + + // ====== ai-chat-message ====== + aiNickname: 'AI Assistant', + defaultNickname: 'Me', + audioMessage: 'Voice Message', + videoMessage: 'Video Message', + inputPlaceholder: 'Please enter your question...', + expandEditorTitle: 'Edit Content', + loadMoreHistory: 'Load more history', + loadingHistory: 'Loading history...', + aiThinking: 'AI is thinking', + receivingReply: 'Receiving reply', + aiThinkingStatus1: 'AI is thinking', + aiThinkingStatus2: 'AI is analyzing', + aiThinkingStatus3: 'AI is searching', + aiThinkingStatus4: 'AI is generating', + serviceUnavailable: 'Sorry, the AI service is temporarily unavailable. Please try again later.', + serviceTemporaryUnavailable: 'Sorry, the service is temporarily unavailable. Please try again later.', + noContentToCopy: 'No content to copy', + copySuccess: 'Copied', + copySelected: 'Copied selected content', + copyFail: 'Copy failed', + openingFile: 'Opening file...', + fileOpenFail: 'Failed to open file', + loadHistoryFail: 'Failed to load history', + about: '0B', + + // ====== ai-chat-search ====== + searchEntrance: 'Search', + searchPlaceholder: 'Search chat history', + searchClose: 'Done', + noMatchResult: 'No matching results', + searchAtTop: 'Already at top', + searchAtBottom: 'Already at bottom', + + // ====== index.vue ====== + settingsTitle: 'Settings', + fallbackWelcome: 'Hello! I am an AI customer service assistant, glad to serve you!\n\nI can help you with:\n• Product-related questions\n• Order issues\n• Technical support\n• Product recommendations\n\nPlease tell me how I can assist you?', + changeAvatar: 'Change Avatar', + changeAvatarDesc: 'Customize your chat avatar', + changeNickname: 'Change Nickname', + changeNicknameDesc: 'Customize your nickname', + clearChat: 'Clear Chat', + exportChat: 'Export Records', + help: 'Help', + confirmClearChat: 'Are you sure you want to clear the chat?', + chatCleared: 'Chat history has been cleared. How can I help you?', + featureDeveloping: 'Feature under development', + thanksFeedback: 'Thank you for your feedback!', + improveService: 'We will improve our service', + openLink: 'Open Link', + confirmOpenLink: 'Are you sure you want to open this link: ', + operationFailed: 'Operation failed, please try again', + prompt: 'Prompt', + serviceTypeNotSupported: 'Current service type does not support this page', + + // ====== ai-chat-avatar-selector ====== + avatarSelectorTitle: 'Change Avatar', + chooseFromAlbum: 'Choose from Album', + avatarChangeSuccess: 'Avatar changed successfully', + enableAlbumPermission: 'Please enable album permission', + + // ====== ai-chat-emoji-panel ====== + emojiTitle: 'Emoji', + + // ====== ai-chat-nickname-editor ====== + editNickname: 'Edit Nickname', + newNicknamePlaceholder: 'Please enter your new nickname', + nicknameTip: 'Nickname length 1-12 characters, visible only to you', + nicknameChangeSuccess: 'Nickname changed successfully', + + // ====== ai-chat-tools-panel ====== + moreFunctions: 'More Features', + image: 'Image', + file: 'File', + voice: 'Voice', + location: 'Location', + + // ====== ai-chat-voice-panel ====== + voiceInputTitle: 'Voice Input', + recordingTip: 'Recording, release to end', + startRecordTip: 'Tap to start recording', + voiceInputFailed: 'Voice input failed', + + // ====== index.vue - Menu ====== + menuClearChat: 'Clear Chat', + menuExport: 'Export Records', + menuSettings: 'Settings', + menuHelp: 'Help' +} diff --git a/lang/en-us/ai/ai-chat.js b/lang/en-us/ai/ai-chat.js deleted file mode 100644 index 34f4227..0000000 --- a/lang/en-us/ai/ai-chat.js +++ /dev/null @@ -1,4 +0,0 @@ -export const lang = { - //title为每个页面的标题 - title: 'AI Intelligent Customer Service' -} \ No newline at end of file diff --git a/lang/zh-cn/ai-chat/index.js b/lang/zh-cn/ai-chat/index.js new file mode 100644 index 0000000..496ebe1 --- /dev/null +++ b/lang/zh-cn/ai-chat/index.js @@ -0,0 +1,99 @@ +export const lang = { + //title为每个页面的标题 + title: 'AI智能客服', + + // ====== 通用 ====== + cancel: '取消', + save: '保存', + send: '发送', + retry: '重试', + + // ====== ai-chat-message ====== + aiNickname: '智能助手', + defaultNickname: '我', + audioMessage: '语音消息', + videoMessage: '视频消息', + inputPlaceholder: '请输入您的问题...', + expandEditorTitle: '编辑内容', + loadMoreHistory: '加载更多历史消息', + loadingHistory: '加载历史消息中...', + aiThinking: 'AI正在思考', + receivingReply: '正在接收回复', + aiThinkingStatus1: 'AI正在思考', + aiThinkingStatus2: 'AI正在分析', + aiThinkingStatus3: 'AI正在检索', + aiThinkingStatus4: 'AI正在生成', + serviceUnavailable: '抱歉,AI服务暂时不可用,请稍后重试。', + serviceTemporaryUnavailable: '抱歉,服务暂时不可用,请稍后重试。', + noContentToCopy: '无可复制的内容', + copySuccess: '已复制', + copySelected: '已复制选中内容', + copyFail: '复制失败', + openingFile: '打开文件中...', + fileOpenFail: '文件打开失败', + loadHistoryFail: '加载历史失败', + about: '0B', + + // ====== ai-chat-search ====== + searchEntrance: '搜索', + searchPlaceholder: '搜索聊天记录', + searchClose: '完成', + noMatchResult: '未找到匹配结果', + searchAtTop: '已到顶部', + searchAtBottom: '已到底部', + + // ====== index.vue ====== + settingsTitle: '设置', + fallbackWelcome: '您好!我是AI智能客服,很高兴为您服务!\n\n我可以帮您:\n• 解答产品相关问题\n• 处理订单问题\n• 提供技术支持\n• 推荐相关商品\n\n请告诉我您需要什么帮助?', + changeAvatar: '更换头像', + changeAvatarDesc: '自定义您的聊天头像', + changeNickname: '更换昵称', + changeNicknameDesc: '自定义您的昵称', + clearChat: '清空聊天', + exportChat: '导出记录', + help: '帮助', + confirmClearChat: '确定要清空聊天记录吗?', + chatCleared: '聊天记录已清空,有什么可以帮助您的吗?', + featureDeveloping: '功能开发中', + thanksFeedback: '感谢您的反馈!', + improveService: '我们会改进服务', + openLink: '打开链接', + confirmOpenLink: '确定要打开链接:', + operationFailed: '操作失败,请重试', + prompt: '提示', + serviceTypeNotSupported: '当前客服类型不支持此页面', + + // ====== ai-chat-avatar-selector ====== + avatarSelectorTitle: '更换头像', + chooseFromAlbum: '从相册选择', + avatarChangeSuccess: '头像更换成功', + enableAlbumPermission: '请开启相册权限', + + // ====== ai-chat-emoji-panel ====== + emojiTitle: '表情', + + // ====== ai-chat-nickname-editor ====== + editNickname: '修改昵称', + newNicknamePlaceholder: '请输入您的新昵称', + nicknameTip: '昵称长度限制1-12个字符,仅自己可见', + nicknameChangeSuccess: '昵称修改成功', + + // ====== ai-chat-tools-panel ====== + moreFunctions: '更多功能', + image: '图片', + file: '文件', + voice: '语音', + location: '位置', + + // ====== ai-chat-voice-panel ====== + voiceInputTitle: '语音输入', + recordingTip: '正在录音,松开结束', + startRecordTip: '点击开始录音', + voiceInputFailed: '语音输入失败', + + // ====== index.vue - 菜单 ====== + menuClearChat: '清空聊天', + menuExport: '导出记录', + menuSettings: '设置', + menuHelp: '帮助' +} diff --git a/lang/zh-cn/ai/ai-chat.js b/lang/zh-cn/ai/ai-chat.js deleted file mode 100644 index 0f589fe..0000000 --- a/lang/zh-cn/ai/ai-chat.js +++ /dev/null @@ -1,4 +0,0 @@ -export const lang = { - //title为每个页面的标题 - title: 'AI智能客服' -} \ No newline at end of file diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index 6f44e1a..e8c28c7 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -4,6 +4,7 @@ - 智能助手 + {{ $lang('aiNickname') }} {{ formatTime(message.timestamp) }} - {{ message.title || '语音消息' }} + {{ message.title || $lang('audioMessage') }} {{ formatDuration(message.duration) }} @@ -156,7 +157,7 @@ @pause="onVideoPause(message)"> - {{ message.title || '视频消息' }} + {{ message.title || $lang('videoMessage') }} {{ formatDuration(message.duration) }} @@ -186,7 +187,7 @@ - {{ message.loadingText || 'AI正在思考' }} + {{ message.loadingText || $lang('aiThinking') }} . . @@ -231,7 +232,7 @@