refactor(ai-chat): 重构AI聊天国际化文件结构

- 将 ai-chat 语言文件从 ai/ 迁移至 ai-chat/ 目录
- 重构消息组件及多个子组件
This commit is contained in:
2026-05-18 15:36:13 +08:00
parent 5c56cfaaa7
commit 556ce9d132
12 changed files with 312 additions and 96 deletions

View File

@@ -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'
}

View File

@@ -1,4 +0,0 @@
export const lang = {
//title为每个页面的标题
title: 'AI Intelligent Customer Service'
}