import { createI18n } from 'vue-i18n'; const messages = { 'en': { title: 'Enterprise AI Gateway', login: { username: 'Username', password: 'Password', submit: 'Login', registerLink: 'Register', noAccount: 'Don\'t have an account?', subtitle: 'Welcome back! Please enter your details.', placeholder: { username: 'Enter your username', password: 'Password' }, failed: 'Login failed', inputError: 'Please enter username and password', usernameRequired: 'Please enter username', loginRequired: 'Please login first', requestFailed: 'Login request failed', forgotPassword: 'Forgot Password?', newPassword: 'New Password', passwordResetSuccess: 'Password reset successfully. Please login.', featuredAgents: 'Featured AI Agents', pleaseLoginFirst: 'Please login to access this agent.', userNotFound: 'User not found', incorrectPassword: 'Incorrect password', accountDisabled: 'Account is disabled', dbConnectionFailed: 'Database connection failed. Please check if the database service is running.', internalError: 'Internal server error. Please try again later.', rememberMe: 'Remember me for 30 days', forgotPasswordDesc: 'Enter your email to reset your password', findPassword: 'Find Password', announcements: 'Announcements', passwordResetEmailSent: '如果账号存在,重置链接已发送到您的邮箱。', passwordResetRequestFailed: '请求密码重置失败', wecomLogin: 'Login with WeCom', wecomConnecting: 'Connecting to WeCom...', wecomStartFailed: 'Failed to start WeCom login', wecomInvalidState: 'Invalid WeCom login state', wecomStateExpired: 'WeCom login session expired, please try again.', wecomBindRequired: 'Current WeCom account is not bound to a local user, please contact admin.', wecomAccountDisabled: 'Account is disabled, please contact admin.', wecomLoginFailed: 'WeCom login failed' }, landing: { hero: { prefix: 'Unleash the Power of', highlight: 'Generative AI', subtitle: 'Access a suite of powerful AI agents tailored for your enterprise needs. Secure, scalable, and intelligent.' }, agent: { role: 'AI Assistant' } }, register: { title: 'Register New Account', username: 'Username', password: 'Password', email: 'Email', cancel: 'Cancel', submit: 'Register', success: 'Registration submitted, please wait for approval', failed: 'Registration failed', inputError: 'Please enter username and password', requestFailed: 'Request failed', emailRequired: 'Email is required', fields: { realName: 'Real Name', employeeId: 'Employee ID', phone: 'Phone Number' } }, common: { errorOccurred: 'An error occurred' }, workspace: { title: 'AI Workspace', userTitle: '{username}\'s AI Workspace', subtitle: 'Choose an agent or click a quick question to start', search: 'Search agents...', unknownAgent: 'Unknown Agent', quickQuestions: { title: 'Quick Questions', tip: 'You can also add quick questions on each agent card', noData: 'No quick questions yet, add them on agent cards below.', addTitle: 'Enter title for quick question (e.g. Daily Report):', addQuestion: 'Enter the full question to send to AI:', confirmDelete: 'Are you sure to delete this quick question?', add: 'Add Quick Question', edit: 'Edit Quick Question', addNew: 'Add New Quick Question', fields: { title: 'Title', titlePlaceholder: 'e.g. Daily Report', targetAgent: 'Target Agent', selectAgent: 'Select an agent', content: 'Question Content', contentPlaceholder: 'Enter the full question or prompt...' }, msg: { fillAll: 'Please fill all fields', saveFailed: 'Failed to save quick question' }, noDefined: 'No quick questions defined.' }, embedded: { title: 'Embedded Agents', noData: 'No embedded agents configured.', noUrl: 'No iframe URL configured' }, announcements: { title: 'Company Announcements', noData: 'No announcements yet.' }, favorites: 'Favorites', myAgents: 'My Agents', availableAgents: 'Available Agents', noAgents: 'No agents available', noPublicAgents: 'No public agents available, please contact admin.', requestPermission: 'Request Access', startChat: 'Start Conversation', startChatShort: 'Start Chat', logout: 'Logout', save: 'Save', cancel: 'Cancel', report: { title: 'My Report', noData: 'No data available', totalCalls: 'Total Calls', recentCalls: 'Recent 7 Days', lastCallTime: 'Last Call Time', lastAgent: 'Last Agent', lastQuestion: 'Last Question', lastAnswer: 'Last Answer', lastScore: 'Last Score', lastComment: 'Last Comment' }, permission: { denied: 'You do not have permission, please request access.', reason: 'Reason for request', submit: 'Submit Request' } }, admin: { title: 'Admin Console', subtitle: 'System Configuration & Management', dashboard: 'Dashboard', agents: 'Agents', permissions: 'App Permissions', requests: 'Requests', reports: 'Reports', save: 'Save Changes', add: 'Add', update: 'Update', cancel: 'Cancel', close: 'Close', edit: 'Edit', delete: 'Delete', // Sidebar & Navigation nav: { dashboard: 'Dashboard', approvals: 'User Approvals', users: 'User Maintenance', departments: 'Departments', agents: 'Agent Management', announcements: 'Announcements', questions: 'Common Questions', wecom: 'WeCom', permissions: 'App Permissions', requests: 'Permission Requests', reports: 'Data Reports' }, // Dashboard dash: { activeAgents: 'Active Agents', totalUsers: 'Total Users', totalConversations: 'Total Conversations', avgRating: 'Average Rating', new: 'new' }, // Approvals approval: { title: 'User Approvals', subtitle: 'Review and approve new user registrations', addUser: 'Add User', noPending: 'No pending approvals', approve: 'Approve', reject: 'Reject', confirmApprove: 'Are you sure you want to approve this user?', confirmReject: 'Are you sure you want to reject this user? This will delete the record.', headers: { username: 'Username', nameId: 'Name/ID', contact: 'Contact', role: 'Role', actions: 'Actions' } }, // Users user: { title: 'User Maintenance', subtitle: 'Manage user information and status', manageDepts: 'Manage Departments', cleanRejected: 'Clean Rejected', batchDelete: 'Batch Delete', batchEdit: 'Batch Edit', batchPermission: 'Batch Permission', addUser: 'Add User', filterUsername: 'Filter Username', filterEmail: 'Filter Email', filterRole: 'Filter Role', allDepts: 'All Departments', hideRejected: 'Hide Rejected', noUsers: 'No users found', editUser: 'Edit User', createUser: 'Create New User', headers: { user: 'User', role: 'Role', dept: 'Dept', status: 'Status', actions: 'Actions' }, fields: { realName: 'Real Name', employeeId: 'Employee ID', phone: 'Phone Number', allowedAgents: 'Allowed Agents', username: 'Username', email: 'Email', department: 'Department', role: 'Role', password: 'Password', passwordHint: '(leave blank to keep)', noAgents: 'No agents available.' }, confirmClean: 'Are you sure you want to delete all REJECTED users?', confirmBatchDelete: 'Are you sure you want to delete {count} users?', msgs: { usernameRequired: 'Username is required', passwordRequired: 'Password is required for new users', created: 'User created successfully', updated: 'User updated successfully', deleted: 'User deleted successfully', batchUpdateSuccess: 'Batch update successful', batchDeleteSuccess: 'Deleted {count} users' } }, // Departments dept: { title: 'Department Management', subtitle: 'Manage organization structure', edit: 'Edit Department', add: 'Add New Department', noDepts: 'No departments configured.', headers: { name: 'Name', code: 'Code', company: 'Company', actions: 'Actions' }, fields: { name: 'Name', namePlaceholder: 'e.g. IT Department', code: 'Code', codePlaceholder: 'e.g. DEPT-001', company: 'Company', companyPlaceholder: 'e.g. HQ', description: 'Description', descriptionPlaceholder: 'Department description...' }, confirmDelete: 'Delete this department?', msg: { nameRequired: 'Name is required' } }, // Agents agent: { title: 'Agent Configuration', subtitle: 'Manage AI assistants and their integrations', new: 'New Agent', edit: 'Edit Agent', create: 'Create New Agent', noAgents: 'No agents configured yet', headers: { name: 'Name', type: 'Type', config: 'Configuration', status: 'Status', actions: 'Actions' }, fields: { name: 'Name', namePlaceholder: 'e.g. HR Assistant', type: 'Integration Type', types: { api: 'API Integration (Dify)', iframe: 'Iframe Embed' }, appId: 'Dify App ID', apiKey: 'API Key', baseUrl: 'API Base URL (Optional)', baseUrlPlaceholder: 'Default: Dify Config', iframeUrl: 'Iframe URL', description: 'Description', descPlaceholder: 'Briefly describe what this agent does...' }, confirmDelete: 'Are you sure you want to delete this agent?', manageAccess: 'Manage Access' }, // Common Questions question: { title: 'Common Questions', subtitle: 'Manage global quick questions for all users', edit: 'Edit Question', add: 'Add New Question', noData: 'No common questions configured.', headers: { title: 'Title', agent: 'Agent', order: 'Order', actions: 'Actions' }, fields: { title: 'Title', titlePlaceholder: 'e.g. Write Report', targetAgent: 'Target Agent', sortOrder: 'Sort Order', content: 'Question Content', contentPlaceholder: 'Enter the prompt content...' }, confirmDelete: 'Are you sure?', msg: { fillAll: 'Please fill all fields' } }, announcement: { title: 'Announcement Management', subtitle: 'Publish company announcements for all users', add: 'Publish Announcement', publish: 'Publish', noData: 'No announcements yet', confirmDelete: 'Are you sure to delete this announcement?', fields: { title: 'Title', content: 'Content' }, msg: { fillAll: 'Please fill all fields' } }, wecom: { title: 'WeCom Binding Management', subtitle: 'Manually bind/unbind WeCom accounts and review login audit records', refresh: 'Refresh', quickBind: 'Quick Bind', bind: 'Bind', unbind: 'Unbind', bindingList: 'Binding List', boundOnly: 'Bound only', noData: 'No data', auditTitle: 'Login Audit (latest 200)', exportAudit: 'Export Audit', noAuditData: 'No audit records', confirmUnbind: 'Confirm unbinding this user from WeCom?', fields: { userId: 'User ID (user_id)', wecomUserId: 'WeCom UserId', wecomUnionId: 'UnionId (optional)' }, headers: { user: 'User', roleStatus: 'Role / Status', wecomUserId: 'WeCom UserId', unionId: 'UnionId', actions: 'Actions' }, auditHeaders: { time: 'Time', source: 'Source', user: 'User', status: 'Status', reason: 'Reason', ip: 'IP' }, filters: { allSources: 'All Sources', allStatus: 'All Status' }, sources: { wecom: 'WeCom', password: 'Password' }, auditStatus: { success: 'Success', failed: 'Failed' }, msg: { bindInputRequired: 'Please enter user_id and wecom_userid', bindFailed: 'Bind failed', bindSuccess: 'Bind succeeded', unbindFailed: 'Unbind failed', boundConflict: 'This WeCom account is already bound: {detail}' } }, // Permissions perm: { title: 'App Permissions', subtitle: 'Manage user access to agents via grid', batchAssign: 'Batch Assign', importCsv: 'Import CSV', exportCsv: 'Export CSV', filterName: 'Filter by Name/Username', filterDept: 'Filter by Department', allRoles: 'All Roles', headers: { user: 'User', dept: 'Dept' }, batchModal: { title: 'Batch Assign Permissions', selected: 'Selected: {count} users', action: 'Action', add: 'Add (Grant Access)', remove: 'Remove (Revoke Access)', set: 'Set (Overwrite)', selectAgents: 'Select Agents', apply: 'Apply Changes' }, agentModal: { title: 'Manage Access', agent: 'Agent:', save: 'Save Changes' }, msg: { selectAgent: 'Please select at least one agent', updateSuccess: 'Permissions updated successfully' } }, // Requests request: { title: 'Permission Requests', subtitle: 'Review user requests for agent access', noPending: 'No pending requests', headers: { userId: 'User ID', targetAgent: 'Target Agent', reason: 'Reason', status: 'Status', actions: 'Actions' }, approve: 'Approve', reject: 'Reject' }, // Reports report: { title: 'Data Reports: {table}', subtitle: 'Raw data view and statistics', export: 'Export Excel', columnSettings: 'Column Settings', showSelection: 'Show Selection', hideSelection: 'Hide Selection', deleting: 'Deleting...', deleteSelected: 'Delete Selected ({count})', tableSettings: 'Table Settings', resetLayout: 'Reset Layout', wrapText: 'Wrap Text', wrapMaxHeightPx: 'Max Wrap Height (px)', advancedSortRules: 'Advanced Sort Rules (priority order)', addRule: 'Add Rule', noAdvancedSort: 'No advanced sort rules. Header click sorting will be used.', sortAsc: 'Ascending', sortDesc: 'Descending', moveUp: 'Move Up', moveDown: 'Move Down', remove: 'Remove', filterPlaceholder: 'Filter...', totalRows: 'Total: {total}', showingRange: 'Showing: {start}-{end} / {total}', paginationSummary: 'Total {total} rows, page {page} / {pages}', perPage: 'Per page', itemsUnit: 'rows', prevPage: 'Prev', nextPage: 'Next', enterFullscreen: 'Enter Fullscreen', exitFullscreen: 'Exit Fullscreen', noData: 'No data available for {table}', usage: 'Usage Analytics', byUser: 'Requests by User', byAgent: 'Requests by Agent', columns: { id: 'ID', user_id: 'User ID', username: 'Username', real_name: 'Real Name', email: 'Email', phone_number: 'Phone', department: 'Department', employee_id: 'Employee ID', role: 'Role', status: 'Status', is_active: 'Is Active', language: 'Language', default_agent_id: 'Default Agent ID', default_agent: 'Default Agent', created_at: 'Created At', updated_at: 'Updated At', last_login: 'Last Login', last_login_at: 'Last Login At', app_id: 'App ID', dify_app_id: 'Dify App ID', dify_api_key: 'Dify API Key', api_base_url: 'API Base URL', agent_id: 'Agent ID', agent_name: 'Agent Name', conversation_id: 'Conversation ID', attribution_parts: 'Attribution Parts', session_id: 'Session ID', message_id: 'Message ID', question: 'Question', query: 'Query', answer: 'Answer', retriever_resources: 'Retriever Resources', response: 'Response', content: 'Content', description: 'Description', extra_config: 'Extra Config', icon_url: 'Icon URL', feedback: 'Feedback', rating: 'Rating', comment: 'Comment', model: 'Model', tokens: 'Tokens', tokens_used: 'Tokens Used', tokens_prompt: 'Prompt Tokens', tokens_completion: 'Completion Tokens', total_tokens: 'Total Tokens', latency_ms: 'Latency (ms)', latency: 'Latency', cost: 'Cost', ip: 'IP', user_agent: 'User Agent', source: 'Source', type: 'Type', title: 'Title', name: 'Name', code: 'Code', company: 'Company', theme_preference: 'Theme Preference', password_hash: 'Password Hash', reset_token: 'Reset Token', reset_token_expiry: 'Reset Token Expiry' }, tables: { users: 'Users', chat_logs: 'Chat Logs', feedbacks: 'Feedbacks', departments: 'Departments', agents: 'Agents', permission_requests: 'Permission Requests' } }, // Batch Edit batchEdit: { title: 'Batch Edit Users', selected: 'Selected: {count} users', update: 'Update Users', fields: { dept: 'Department', role: 'Role', status: 'Status', keepUnchanged: 'Keep Unchanged' } }, // Common Messages role: { user: 'User', admin: 'Admin', guest: 'Guest' }, status: { active: 'Active', disabled: 'Disabled', pending: 'Pending', rejected: 'Rejected', approved: 'Approved' }, msg: { success: 'Operation successful', failed: 'Operation failed', saved: 'Saved successfully', requestFailed: 'Request failed', allSaved: 'All changes are already saved to backend.', batchUpdateFailed: 'Batch update failed', batchPermissionUpdateFailed: 'Batch permission update failed', enterOneField: 'Please enter at least one field to update', batchDeleteResult: 'Deleted {count} users.' } }, chat: { defaultTitle: 'Chat', assistantLabel: 'HXOPS AI Assistant', placeholder: 'Ask anything...', history: 'Chat History', noHistory: 'No history', newChat: 'New Chat', rate: 'Rate this response', send: 'Send', agentId: 'Agent ID:', loadingAgent: 'Loading agent...', thinking: 'Generating response...', disclaimer: 'AI can make mistakes. Please verify important information.', suggestions: { whatCanYouDo: 'What can you do?', helpWriteReport: 'Help me write a report', analyzeData: 'Analyze this data', creativeWriting: 'Creative writing' }, welcome: { title: 'How can I help you today?', subtitle: 'Start a new conversation or select one from history.' }, feedback: { selectRating: 'Please select a rating first', commentPlaceholder: 'Add a comment (optional)...', sent: 'Sent' } }, profile: { title: 'Profile', personalInfo: 'Personal Information', department: 'Department', language: 'Language', roleAdmin: 'Administrator', roleUser: 'User', unsavedChanges: 'You have unsaved changes', editHint: 'Switch to edit mode to update profile details', security: 'Security', preferences: 'Preferences', edit: 'Edit', cancel: 'Cancel', saveSuccess: 'Profile saved successfully', passwordChanged: 'Password changed successfully', passwordMismatch: 'Passwords do not match', currentPassword: 'Current Password', newPassword: 'New Password', confirmPassword: 'Confirm Password', changePassword: 'Change Password' }, theme: { label: 'Theme', light: 'Light', dark: 'Dark', system: 'Follow System', switchToLight: 'Switch to light mode', switchToDark: 'Switch to dark mode' } }, 'zh-CN': { title: '企业级 AI 网关', login: { username: '用户名', password: '密码', submit: '登录', registerLink: '点击注册', noAccount: '没有账号?', subtitle: '欢迎回来!请输入您的详细信息。', placeholder: { username: '请输入用户名', password: '密码' }, failed: '登录失败', inputError: '请输入用户名和密码', usernameRequired: '请输入用户名', loginRequired: '请先登录', requestFailed: '登录请求失败', forgotPassword: '忘记密码?', newPassword: '新密码', passwordResetSuccess: '密码重置成功,请重新登录。', featuredAgents: '推荐 AI 应用', pleaseLoginFirst: '请先登录以使用此应用。', userNotFound: '用户不存在', incorrectPassword: '密码错误', accountDisabled: '账号已禁用', dbConnectionFailed: '数据库连接失败,请检查数据库服务是否运行。', internalError: '服务器内部错误,请稍后重试。', rememberMe: '30天内免登录', forgotPasswordDesc: '输入您的邮箱以重置密码', findPassword: '找回密码', announcements: '公告', passwordResetEmailSent: '如果账号存在,重置链接已发送到您的邮箱。', passwordResetRequestFailed: '请求密码重置失败', wecomLogin: '企业微信登录', wecomConnecting: '正在连接企业微信...', wecomStartFailed: '启动企业微信登录失败', wecomInvalidState: '企业微信登录状态无效', wecomStateExpired: '企业微信登录会话已过期,请重试。', wecomBindRequired: '当前企业微信账号未绑定本地用户,请联系管理员。', wecomAccountDisabled: '账号已禁用,请联系管理员。', wecomLoginFailed: '企业微信登录失败' }, landing: { hero: { prefix: '释放', highlight: '生成式 AI 的强大力量', subtitle: '获取一套专为企业需求打造的强大 AI 智能体,安全、可扩展且智能。' }, agent: { role: 'AI 助手' } }, register: { title: '注册新账号', username: '用户名', password: '密码', email: '邮箱', cancel: '取消', submit: '提交注册', success: '注册申请已提交,请等待管理员审批', failed: '注册失败', inputError: '请输入用户名和密码', requestFailed: '请求失败', fields: { realName: '真实姓名', employeeId: '工号', phone: '手机号' } }, workspace: { title: 'AI 工作台', userTitle: '{username} 的 AI 工作台', subtitle: '选择一个助手,或点击常用问题快速开始', search: '搜索应用...', unknownAgent: '未知应用', quickQuestions: { title: '常用问题', tip: '在每个应用卡片上也可以添加常用问题', noData: '暂无常用问题,可以在下方应用卡片上添加。', addTitle: '请输入常用问题的标题(例如:写日报):', addQuestion: '请输入要发送给 AI 的完整问题内容:', confirmDelete: '确认删除该常用问题吗?', add: '添加问题', edit: '编辑常用问题', addNew: '添加新常用问题', fields: { title: '标题', titlePlaceholder: '例如:写日报', targetAgent: '目标应用', selectAgent: '选择一个应用', content: '问题内容', contentPlaceholder: '请输入完整的问题或提示词...' }, msg: { fillAll: '请填写所有必填项', saveFailed: '保存常用问题失败' }, noDefined: '暂无常用问题定义。' }, embedded: { title: '嵌入式应用', noData: '暂无嵌入式应用配置。', noUrl: '未配置 iframe URL' }, announcements: { title: '公司公告', noData: '暂无公告' }, favorites: '收藏应用', myAgents: '我的应用', availableAgents: '可用应用', noAgents: '暂无可用应用', noFavorites: '暂无收藏', noPublicAgents: '暂无公开应用,请联系管理员。', requestPermission: '申请权限', startChat: '点击开始对话', startChatShort: '开始对话', logout: '退出登录', save: '保存', cancel: '取消', report: { title: '我的报表', noData: '暂无数据', totalCalls: '总调用次数', recentCalls: '最近 7 天调用次数', lastCallTime: '最近调用时间', lastAgent: '最近调用应用', lastQuestion: '最近调用问题', lastAnswer: '最近调用回答', lastScore: '最近调用评分', lastComment: '最近调用评价' }, permission: { denied: '您没有该应用的访问权限,请提交申请。', reason: '申请理由', submit: '提交申请' } }, admin: { title: '管理控制台', subtitle: '系统配置与管理', dashboard: '仪表盘', agents: '应用管理', permissions: '用户与权限', requests: '审批申请', reports: '数据报表', save: '保存更改', add: '添加', update: '更新', cancel: '取消', close: '关闭', edit: '编辑', delete: '删除', // Sidebar & Navigation nav: { dashboard: '仪表盘', approvals: '用户审批', users: '用户管理', departments: '部门管理', agents: '应用管理', announcements: '公告管理', questions: '常用问题', wecom: '企业微信', permissions: '应用权限', requests: '权限审批', reports: '数据报表' }, // Dashboard dash: { activeAgents: '活跃应用', totalUsers: '总用户数', totalConversations: '总对话数', avgRating: '平均评分', new: '新增' }, // Approvals approval: { title: '用户审批', subtitle: '审核新用户注册申请', addUser: '添加用户', noPending: '暂无待审批用户', approve: '通过', reject: '拒绝', confirmApprove: '确定通过该用户的注册申请吗?', confirmReject: '确定拒绝该用户的注册申请吗?这将删除该用户记录。', headers: { username: '用户名', nameId: '姓名/工号', contact: '联系方式', role: '角色', actions: '操作' } }, // Users user: { title: '用户管理', subtitle: '管理用户信息与状态', manageDepts: '管理部门', cleanRejected: '清理已拒绝', batchDelete: '批量删除', batchEdit: '批量编辑', batchPermission: '批量授权', addUser: '添加用户', filterUsername: '筛选用户名', filterEmail: '筛选邮箱', filterRole: '筛选角色', allDepts: '所有部门', hideRejected: '隐藏已拒绝', noUsers: '未找到用户', editUser: '编辑用户', createUser: '创建新用户', headers: { user: '用户', role: '角色', dept: '部门', status: '状态', actions: '操作' }, fields: { realName: '真实姓名', employeeId: '工号', phone: '手机号', allowedAgents: '可用应用', username: '用户名', email: '邮箱', department: '部门', role: '角色', password: '密码', passwordHint: '(留空表示不修改)', noAgents: '暂无可用应用' }, confirmClean: '确定要删除所有“已拒绝”的用户吗?', confirmBatchDelete: '确定要删除选中的 {count} 个用户吗?', msgs: { usernameRequired: '用户名必填', passwordRequired: '新用户必须设置密码', created: '用户创建成功', updated: '用户更新成功', deleted: '用户删除成功', batchUpdateSuccess: '批量更新成功', batchDeleteSuccess: '已删除 {count} 个用户' } }, // Departments dept: { title: '部门管理', subtitle: '管理组织架构', edit: '编辑部门', add: '添加部门', noDepts: '暂无部门配置', headers: { name: '名称', code: '编码', company: '公司', actions: '操作' }, fields: { name: '名称', namePlaceholder: '例如:信息技术部', code: '编码', codePlaceholder: '例如:DEPT-001', company: '公司', companyPlaceholder: '例如:总部', description: '描述', descriptionPlaceholder: '请输入部门描述...' }, confirmDelete: '确定删除该部门吗?', msg: { nameRequired: '部门名称必填' } }, // Agents agent: { title: '应用配置', subtitle: '管理 AI 助手及其集成配置', new: '新建应用', edit: '编辑应用', create: '创建应用', noAgents: '暂无应用配置', headers: { name: '名称', type: '类型', config: '配置', status: '状态', actions: '操作' }, fields: { name: '名称', namePlaceholder: '例如:人事助手', type: '集成类型', types: { api: 'API 集成 (Dify)', iframe: 'Iframe 嵌入' }, appId: 'Dify App ID', apiKey: 'API Key', baseUrl: 'API 基础 URL(选填)', baseUrlPlaceholder: '默认:使用 Dify 配置', iframeUrl: 'Iframe URL', description: '描述', descPlaceholder: '简要描述该应用的功能...' }, confirmDelete: '确定要删除该应用吗?', manageAccess: '管理权限' }, // Common Questions question: { title: '常用问题', subtitle: '管理全局常用问题', edit: '编辑问题', add: '添加问题', noData: '暂无常用问题配置', headers: { title: '标题', agent: '所属应用', order: '排序', actions: '操作' }, fields: { title: '标题', titlePlaceholder: '例如:写日报', targetAgent: '目标应用', sortOrder: '排序', content: '问题内容', contentPlaceholder: '请输入完整的问题提示词...' }, confirmDelete: '确定删除吗?', msg: { fillAll: '请填写所有必填项' } }, announcement: { title: '公告管理', subtitle: '面向全体用户发布公司资讯', add: '发布公告', publish: '发布', noData: '暂无公告', confirmDelete: '确认删除该公告吗?', fields: { title: '标题', content: '内容' }, msg: { fillAll: '请填写所有必填项' } }, wecom: { title: '企业微信绑定管理', subtitle: '手动绑定/解绑企业微信账号,并查看登录审计记录', refresh: '刷新', quickBind: '快速绑定', bind: '绑定', unbind: '解绑', bindingList: '绑定列表', boundOnly: '只看已绑定', noData: '暂无数据', auditTitle: '登录审计(最近 200 条)', exportAudit: '导出审计', noAuditData: '暂无审计记录', confirmUnbind: '确认解绑该用户的企业微信账号?', fields: { userId: '用户ID (user_id)', wecomUserId: '企业微信 UserId', wecomUnionId: 'UnionId (可选)' }, headers: { user: '用户', roleStatus: '角色/状态', wecomUserId: 'WeCom UserId', unionId: 'UnionId', actions: '操作' }, auditHeaders: { time: '时间', source: '来源', user: '用户', status: '状态', reason: '原因', ip: 'IP' }, filters: { allSources: '全部来源', allStatus: '全部状态' }, sources: { wecom: '企业微信', password: '密码' }, auditStatus: { success: '成功', failed: '失败' }, msg: { bindInputRequired: '请输入 user_id 与 wecom_userid', bindFailed: '绑定失败', bindSuccess: '绑定成功', unbindFailed: '解绑失败', boundConflict: '该企业微信账号已被绑定:{detail}' } }, // Permissions perm: { title: '应用权限', subtitle: '通过矩阵视图管理用户权限', batchAssign: '批量分配', importCsv: '导入 CSV', exportCsv: '导出 CSV', filterName: '筛选 姓名/用户名', filterDept: '筛选 部门', allRoles: '所有角色', headers: { user: '用户', dept: '部门' }, batchModal: { title: '批量分配权限', selected: '已选: {count} 用户', action: '操作', add: '添加 (授予权限)', remove: '移除 (撤销权限)', set: '覆盖 (重置权限)', selectAgents: '选择应用', apply: '应用更改' }, agentModal: { title: '管理访问权限', agent: '应用:', save: '保存更改' }, msg: { selectAgent: '请至少选择一个应用', updateSuccess: '权限更新成功' } }, // Requests request: { title: '权限申请', subtitle: '审核用户对应用的访问申请', noPending: '暂无待处理申请', headers: { userId: '用户 ID', targetAgent: '目标应用', reason: '申请理由', status: '状态', actions: '操作' }, approve: '通过', reject: '拒绝' }, // Reports report: { title: '数据报表: {table}', subtitle: '原始数据与统计视图', export: '导出 Excel', columnSettings: '列设置', showSelection: '显示选择', hideSelection: '隐藏选择', deleting: '删除中...', deleteSelected: '删除所选({count})', tableSettings: '表格设置', resetLayout: '重置布局', wrapText: '自动换行', wrapMaxHeightPx: '换行最大高度(px)', advancedSortRules: '高级排序规则(按顺序优先)', addRule: '添加规则', noAdvancedSort: '未设置高级排序规则,将使用表头点击排序。', sortAsc: '升序', sortDesc: '降序', moveUp: '上移', moveDown: '下移', remove: '删除', filterPlaceholder: '筛选...', totalRows: '总数:{total}', showingRange: '显示:{start}-{end} / {total}', paginationSummary: '共 {total} 条,当前第 {page} / {pages} 页', perPage: '每页', itemsUnit: '条', prevPage: '上一页', nextPage: '下一页', enterFullscreen: '进入全屏', exitFullscreen: '退出全屏', noData: '暂无数据: {table}', usage: '使用分析', byUser: '按用户统计', byAgent: '按应用统计', columns: { id: 'ID', user_id: '用户 ID', username: '用户名', real_name: '真实姓名', email: '邮箱', phone_number: '手机号', department: '部门', employee_id: '工号', role: '角色', status: '状态', is_active: '是否启用', language: '语言', default_agent_id: '默认应用 ID', default_agent: '默认应用', created_at: '创建时间', updated_at: '更新时间', last_login: '最近登录', last_login_at: '最近登录时间', app_id: '应用 ID', dify_app_id: 'Dify 应用 ID', dify_api_key: 'Dify API 密钥', api_base_url: 'API 基础 URL', agent_id: '应用 ID', agent_name: '应用名称', conversation_id: '会话 ID', attribution_parts: '归因片段', session_id: '会话 ID', message_id: '消息 ID', question: '问题', query: '提问', answer: '回答', retriever_resources: '检索资源', response: '回复', content: '内容', description: '描述', extra_config: '扩展配置', icon_url: '图标 URL', feedback: '反馈', rating: '评分', comment: '评论', model: '模型', tokens: 'Token 数', tokens_used: '已用 Token', tokens_prompt: '提示词 Token', tokens_completion: '补全 Token', total_tokens: '总 Token', latency_ms: '延迟(毫秒)', latency: '延迟', cost: '费用', ip: 'IP', user_agent: '用户代理', source: '来源', type: '类型', title: '标题', name: '名称', code: '编码', company: '公司', theme_preference: '主题偏好', password_hash: '密码哈希', reset_token: '重置令牌', reset_token_expiry: '重置令牌过期时间' }, tables: { users: '用户', chat_logs: '聊天日志', feedbacks: '反馈', departments: '部门', agents: '应用', permission_requests: '权限申请' } }, // Batch Edit batchEdit: { title: '批量编辑用户', selected: '已选: {count} 用户', update: '更新用户', fields: { dept: '部门', role: '角色', status: '状态', keepUnchanged: '保持不变' } }, // Common Messages role: { user: '普通用户', admin: '管理员', guest: '访客' }, status: { active: '启用', disabled: '禁用', pending: '待审核', rejected: '已拒绝', approved: '已通过' }, msg: { success: '操作成功', failed: '操作失败', saved: '保存成功', requestFailed: '请求失败', allSaved: '所有更改已保存至后台', batchUpdateFailed: '批量更新失败', batchPermissionUpdateFailed: '批量权限更新失败', enterOneField: '请至少输入一个要更新的字段', batchDeleteResult: '已删除 {count} 位用户。' } }, chat: { defaultTitle: '对话', assistantLabel: '和信 AI 助手', placeholder: '请输入问题...', history: '历史记录', noHistory: '暂无历史记录', newChat: '新对话', rate: '评价回答', send: '发送', agentId: '应用 ID:', loadingAgent: '正在加载应用...', thinking: '正在生成回答...', disclaimer: 'AI 可能会犯错,请核实重要信息。', suggestions: { whatCanYouDo: '你能做什么?', helpWriteReport: '帮我写一份报告', analyzeData: '分析这份数据', creativeWriting: '创意写作' }, welcome: { title: '今天我能帮您做什么?', subtitle: '开始新对话或从历史记录中选择。' }, feedback: { selectRating: '请先选择评分', commentPlaceholder: '添加评论(可选)...', sent: '已发送' } }, profile: { title: '个人资料', personalInfo: '基本信息', department: '部门', language: '语言', roleAdmin: '管理员', roleUser: '普通用户', unsavedChanges: '您有未保存的更改', editHint: '切换到编辑模式以更新个人资料', security: '安全设置', preferences: '偏好设置', edit: '编辑', cancel: '取消', saveSuccess: '个人资料保存成功', passwordChanged: '密码修改成功', passwordMismatch: '两次输入的密码不一致', currentPassword: '当前密码', newPassword: '新密码', confirmPassword: '确认密码', changePassword: '修改密码' }, theme: { label: '主题', light: '明亮', dark: '暗夜', system: '跟随系统', switchToLight: '切换到明亮模式', switchToDark: '切换到暗夜模式' } }, 'zh-TW': { title: '企業級 AI 網關', login: { username: '用戶名', password: '密碼', submit: '登錄', registerLink: '點擊註冊', noAccount: '沒有賬號?', subtitle: '歡迎回來!請輸入您的詳細信息。', placeholder: { username: '請輸入用戶名', password: '密碼' }, failed: '登錄失敗', inputError: '請輸入用戶名和密碼', usernameRequired: '請輸入用戶名', loginRequired: '請先登錄後再進入對話', requestFailed: '登錄請求失敗', wecomLogin: '企業微信登錄', wecomConnecting: '正在連接企業微信...' }, landing: { hero: { prefix: '釋放', highlight: '生成式 AI 的力量', subtitle: '訪問為您企業量身定制的強大 AI 助手套件。安全、可擴展、智能。' }, agent: { role: 'AI 助手' } }, register: { title: '註冊新賬號', username: '用戶名', password: '密碼', email: '郵箱', cancel: '取消', submit: '提交註冊', success: '註冊申請已提交,請等待管理員審批', failed: '註冊失敗', inputError: '請輸入用戶名和密碼', requestFailed: '請求失敗' }, workspace: { title: 'AI 工作台', userTitle: '{username} 的 AI 工作台', subtitle: '選擇一個助手,或點擊常用問題快速開始', search: '搜索應用...', unknownAgent: '未知應用', quickQuestions: { title: '常用問題', tip: '在每個應用卡片上也可以添加常用問題', noData: '暫無常用問題,可以在下方應用卡片上添加。', addTitle: '請輸入常用問題的標題(例如:寫日報):', addQuestion: '請輸入要發送給 AI 的完整問題內容:', confirmDelete: '確認刪除該常用問題嗎?', add: '添加問題', edit: '編輯常用問題', addNew: '添加新常用問題', fields: { title: '標題', titlePlaceholder: '例如:寫日報', targetAgent: '目標應用', selectAgent: '選擇一個應用', content: '問題內容', contentPlaceholder: '請輸入完整的問題或提示詞...' }, msg: { fillAll: '請填寫所有必填項', saveFailed: '保存常用問題失敗' }, noDefined: '暫無常用問題定義。' }, embedded: { title: '嵌入式應用', noData: '暫無嵌入式應用配置。', noUrl: '未配置 iframe URL' }, announcements: { title: '公司公告', noData: '暫無公告' }, favorites: '收藏應用', myAgents: '我的應用', availableAgents: '可用應用', noAgents: '暫無可用應用', noFavorites: '暫無收藏', noPublicAgents: '暫無公開應用,請聯繫管理員。', requestPermission: '申請權限', startChat: '點擊開始對話', startChatShort: '開始對話', logout: '退出登錄', save: '保存', cancel: '取消', report: { title: '我的報表', noData: '暫無數據', totalCalls: '總調用次數', recentCalls: '最近 7 天調用次數', lastCallTime: '最近調用時間', lastAgent: '最近調用應用', lastQuestion: '最近調用問題', lastAnswer: '最近調用回答', lastScore: '最近調用評分', lastComment: '最近調用評價' }, permission: { denied: '您沒有該應用的訪問權限,請提交申請。', reason: '申請理由', submit: '提交申請' } }, admin: { title: '管理控制台', subtitle: '系統配置與管理', dashboard: '儀表盤', agents: '應用管理', permissions: '用戶與權限', requests: '審批申請', reports: '數據報表', save: '保存更改', add: '添加', update: '更新', cancel: '取消', close: '關閉', edit: '編輯', delete: '刪除', // Sidebar & Navigation nav: { dashboard: '儀表盤', approvals: '用戶審批', users: '用戶管理', departments: '部門管理', agents: '應用管理', announcements: '公告管理', questions: '常用問題', wecom: '企業微信', permissions: '應用權限', requests: '權限審批', reports: '數據報表' }, // Dashboard dash: { activeAgents: '活躍應用', totalUsers: '總用戶數', totalConversations: '總對話數', avgRating: '平均評分', new: '新增' }, // Approvals approval: { title: '用戶審批', subtitle: '審核新用戶註冊申請', addUser: '添加用戶', noPending: '暫無待審批用戶', approve: '通過', reject: '拒絕', confirmApprove: '確定通過該用戶的註冊申請嗎?', confirmReject: '確定拒絕該用戶的註冊申請嗎?這將刪除該用戶記錄。', headers: { username: '用戶名', nameId: '姓名/工號', contact: '聯繫方式', role: '角色', actions: '操作' } }, // Users user: { title: '用戶管理', subtitle: '管理用戶信息與狀態', manageDepts: '管理部門', cleanRejected: '清理已拒絕', batchDelete: '批量刪除', batchEdit: '批量編輯', batchPermission: '批量授權', addUser: '添加用戶', filterUsername: '篩選用戶名', filterEmail: '篩選郵箱', filterRole: '篩選角色', allDepts: '所有部門', hideRejected: '隱藏已拒絕', noUsers: '未找到用戶', editUser: '編輯用戶', createUser: '創建新用戶', headers: { user: '用戶', role: '角色', dept: '部門', status: '狀態', actions: '操作' }, fields: { realName: '真實姓名', employeeId: '工號', phone: '手機號', allowedAgents: '可用應用', username: '用戶名', email: '郵箱', department: '部門', role: '角色', password: '密碼', passwordHint: '(留空表示不修改)', noAgents: '暫無可用應用' }, confirmClean: '確定要刪除所有“已拒絕”的用戶嗎?', confirmBatchDelete: '確定要刪除選中的 {count} 個用戶嗎?', msgs: { usernameRequired: '用戶名必填', passwordRequired: '新用戶必須設置密碼', created: '用戶創建成功', updated: '用戶更新成功', deleted: '用戶刪除成功', batchUpdateSuccess: '批量更新成功', batchDeleteSuccess: '已刪除 {count} 個用戶' } }, // Departments dept: { title: '部門管理', subtitle: '管理組織架構', edit: '編輯部門', add: '添加部門', noDepts: '暫無部門配置', headers: { name: '名稱', code: '編碼', company: '公司', actions: '操作' }, fields: { name: '名稱', namePlaceholder: '例如:資訊技術部', code: '編碼', codePlaceholder: '例如:DEPT-001', company: '公司', companyPlaceholder: '例如:總部', description: '描述', descriptionPlaceholder: '請輸入部門描述...' }, confirmDelete: '確定刪除該部門嗎?', msg: { nameRequired: '部門名稱必填' } }, // Agents agent: { title: '應用配置', subtitle: '管理 AI 助手及其集成配置', new: '新建應用', edit: '編輯應用', create: '創建應用', noAgents: '暫無應用配置', headers: { name: '名稱', type: '類型', config: '配置', status: '狀態', actions: '操作' }, fields: { name: '名稱', namePlaceholder: '例如:人事助手', type: '集成類型', types: { api: 'API 集成 (Dify)', iframe: 'Iframe 嵌入' }, appId: 'Dify App ID', apiKey: 'API Key', baseUrl: 'API 基礎 URL(選填)', baseUrlPlaceholder: '預設:使用 Dify 配置', iframeUrl: 'Iframe URL', description: '描述', descPlaceholder: '簡要描述該應用的功能...' }, confirmDelete: '確定要刪除該應用嗎?', manageAccess: '管理權限' }, // Common Questions question: { title: '常用問題', subtitle: '管理全局常用問題', edit: '編輯問題', add: '添加問題', noData: '暫無常用問題配置', headers: { title: '標題', agent: '所屬應用', order: '排序', actions: '操作' }, fields: { title: '標題', titlePlaceholder: '例如:寫日報', targetAgent: '目標應用', sortOrder: '排序', content: '問題內容', contentPlaceholder: '請輸入完整的問題提示詞...' }, confirmDelete: '確定刪除嗎?', msg: { fillAll: '請填寫所有必填項' } }, announcement: { title: '公告管理', subtitle: '面向全體用戶發布公司資訊', add: '發布公告', publish: '發布', noData: '暫無公告', confirmDelete: '確認刪除該公告嗎?', fields: { title: '標題', content: '內容' }, msg: { fillAll: '請填寫所有必填項' } }, wecom: { title: '企業微信綁定管理', subtitle: '手動綁定/解綁企業微信帳號,並查看登入審計記錄', refresh: '刷新', quickBind: '快速綁定', bind: '綁定', unbind: '解綁', bindingList: '綁定列表', boundOnly: '僅看已綁定', noData: '暫無資料', auditTitle: '登入審計(最近 200 條)', exportAudit: '導出審計', noAuditData: '暫無審計記錄', confirmUnbind: '確認解綁該用戶的企業微信帳號?', fields: { userId: '用戶ID (user_id)', wecomUserId: '企業微信 UserId', wecomUnionId: 'UnionId (可選)' }, headers: { user: '用戶', roleStatus: '角色/狀態', wecomUserId: 'WeCom UserId', unionId: 'UnionId', actions: '操作' }, auditHeaders: { time: '時間', source: '來源', user: '用戶', status: '狀態', reason: '原因', ip: 'IP' }, filters: { allSources: '全部來源', allStatus: '全部狀態' }, sources: { wecom: '企業微信', password: '密碼' }, auditStatus: { success: '成功', failed: '失敗' }, msg: { bindInputRequired: '請輸入 user_id 與 wecom_userid', bindFailed: '綁定失敗', bindSuccess: '綁定成功', unbindFailed: '解綁失敗', boundConflict: '該企業微信帳號已被綁定:{detail}' } }, // Permissions perm: { title: '應用權限', subtitle: '通過矩陣視圖管理用戶權限', batchAssign: '批量分配', importCsv: '導入 CSV', exportCsv: '導出 CSV', filterName: '篩選 姓名/用戶名', filterDept: '篩選 部門', allRoles: '所有角色', headers: { user: '用戶', dept: '部門' }, batchModal: { title: '批量分配權限', selected: '已選: {count} 用戶', action: '操作', add: '添加 (授予權限)', remove: '移除 (撤銷權限)', set: '覆蓋 (重置權限)', selectAgents: '選擇應用', apply: '應用更改' }, agentModal: { title: '管理訪問權限', agent: '應用:', save: '保存更改' }, msg: { selectAgent: '請至少選擇一個應用', updateSuccess: '權限更新成功' } }, // Requests request: { title: '權限申請', subtitle: '審核用戶對應用的訪問申請', noPending: '暫無待處理申請', headers: { userId: '用戶 ID', targetAgent: '目標應用', reason: '申請理由', status: '狀態', actions: '操作' }, approve: '通過', reject: '拒絕' }, // Reports report: { title: '數據報表: {table}', subtitle: '原始數據與統計視圖', export: '導出 Excel', columnSettings: '列設置', showSelection: '顯示選擇', hideSelection: '隱藏選擇', deleting: '刪除中...', deleteSelected: '刪除所選({count})', tableSettings: '表格設置', resetLayout: '重置佈局', wrapText: '自動換行', wrapMaxHeightPx: '換行最大高度(px)', advancedSortRules: '高級排序規則(按順序優先)', addRule: '添加規則', noAdvancedSort: '未設置高級排序規則,將使用表頭點擊排序。', sortAsc: '升序', sortDesc: '降序', moveUp: '上移', moveDown: '下移', remove: '刪除', filterPlaceholder: '篩選...', totalRows: '總數:{total}', showingRange: '顯示:{start}-{end} / {total}', paginationSummary: '共 {total} 條,當前第 {page} / {pages} 頁', perPage: '每頁', itemsUnit: '條', prevPage: '上一頁', nextPage: '下一頁', enterFullscreen: '進入全屏', exitFullscreen: '退出全屏', noData: '暫無數據: {table}', usage: '使用分析', byUser: '按用戶統計', byAgent: '按應用統計', columns: { id: 'ID', user_id: '用戶 ID', username: '用戶名', real_name: '真實姓名', email: '郵箱', phone_number: '手機號', department: '部門', employee_id: '工號', role: '角色', status: '狀態', is_active: '是否啟用', language: '語言', default_agent_id: '默認應用 ID', default_agent: '默認應用', created_at: '創建時間', updated_at: '更新時間', last_login: '最近登錄', last_login_at: '最近登錄時間', app_id: '應用 ID', dify_app_id: 'Dify 應用 ID', dify_api_key: 'Dify API 金鑰', api_base_url: 'API 基礎 URL', agent_id: '應用 ID', agent_name: '應用名稱', conversation_id: '會話 ID', attribution_parts: '歸因片段', session_id: '會話 ID', message_id: '消息 ID', question: '問題', query: '提問', answer: '回答', retriever_resources: '檢索資源', response: '回覆', content: '內容', description: '描述', extra_config: '擴展配置', icon_url: '圖示 URL', feedback: '反饋', rating: '評分', comment: '評論', model: '模型', tokens: 'Token 數', tokens_used: '已用 Token', tokens_prompt: '提示詞 Token', tokens_completion: '補全 Token', total_tokens: '總 Token', latency_ms: '延遲(毫秒)', latency: '延遲', cost: '費用', ip: 'IP', user_agent: '用戶代理', source: '來源', type: '類型', title: '標題', name: '名稱', code: '編碼', company: '公司', theme_preference: '主題偏好', password_hash: '密碼雜湊', reset_token: '重置令牌', reset_token_expiry: '重置令牌過期時間' }, tables: { users: '用戶', chat_logs: '聊天日誌', feedbacks: '反饋', departments: '部門', agents: '應用', permission_requests: '權限申請' } }, // Batch Edit batchEdit: { title: '批量編輯用戶', selected: '已選: {count} 用戶', update: '更新用戶', fields: { dept: '部門', role: '角色', status: '狀態', keepUnchanged: '保持不變' } }, // Common Messages role: { user: '普通用戶', admin: '管理員', guest: '訪客' }, status: { active: '啟用', disabled: '禁用', pending: '待審核', rejected: '已拒絕', approved: '已通過' }, msg: { success: '操作成功', failed: '操作失敗', saved: '保存成功', requestFailed: '請求失敗', allSaved: '所有更改已保存至後台', batchUpdateFailed: '批量更新失敗', batchPermissionUpdateFailed: '批量權限更新失敗', enterOneField: '請至少輸入一個要更新的字段', batchDeleteResult: '已刪除 {count} 位用戶。' } }, chat: { defaultTitle: '對話', assistantLabel: 'HXOPS AI 助手', placeholder: '請輸入問題...', history: '歷史記錄', noHistory: '暫無歷史記錄', newChat: '新對話', rate: '評價回答', send: '發送', agentId: '應用 ID:', loadingAgent: '正在加載應用...', thinking: '正在生成回答...', disclaimer: 'AI 可能會犯錯,請核實重要信息。', suggestions: { whatCanYouDo: '你能做什麼?', helpWriteReport: '幫我寫一份報告', analyzeData: '分析這份數據', creativeWriting: '創意寫作' }, welcome: { title: '今天我能幫您做什麼?', subtitle: '開始新對話或從歷史記錄中選擇。' }, feedback: { selectRating: '請先選擇評分', commentPlaceholder: '添加評論(可選)...', sent: '已發送' } }, profile: { title: '個人資料', personalInfo: '基本信息', department: '部門', language: '語言', roleAdmin: '管理員', roleUser: '用戶', unsavedChanges: '您有尚未保存的變更', editHint: '切換到編輯模式以更新個人資料', security: '安全設置', preferences: '偏好設置', edit: '編輯', cancel: '取消', saveSuccess: '個人資料保存成功', passwordChanged: '密碼修改成功', passwordMismatch: '兩次輸入的密碼不一致', currentPassword: '當前密碼', newPassword: '新密碼', confirmPassword: '確認密碼', changePassword: '修改密碼' }, theme: { label: '主題', light: '明亮', dark: '暗夜', system: '跟隨系統', switchToLight: '切換到明亮模式', switchToDark: '切換到暗夜模式' } }, 'th': { title: 'เกตเวย์ AI องค์กร', login: { username: 'ชื่อผู้ใช้', password: 'รหัสผ่าน', submit: 'เข้าสู่ระบบ', registerLink: 'ลงทะเบียน', noAccount: 'ไม่มีบัญชี?', subtitle: 'ยินดีต้อนรับกลับ! กรุณากรอกรายละเอียดของคุณ', placeholder: { username: 'กรอกชื่อผู้ใช้ของคุณ', password: 'รหัสผ่าน' }, failed: 'การเข้าสู่ระบบล้มเหลว', inputError: 'กรุณากรอกชื่อผู้ใช้และรหัสผ่าน', usernameRequired: 'กรุณากรอกชื่อผู้ใช้', loginRequired: 'กรุณาเข้าสู่ระบบก่อนเริ่มการสนทนา', requestFailed: 'คำขอเข้าสู่ระบบล้มเหลว', wecomLogin: 'เข้าสู่ระบบด้วย WeCom', wecomConnecting: 'กำลังเชื่อมต่อ WeCom...' }, landing: { hero: { prefix: 'ปลดปล่อยพลังของ', highlight: 'Generative AI', subtitle: 'เข้าถึงชุดผู้ช่วย AI ที่ทรงพลังซึ่งปรับแต่งมาเพื่อความต้องการขององค์กรของคุณ ปลอดภัย ปรับขนาดได้ และชาญฉลาด' }, agent: { role: 'ผู้ช่วย AI' } }, register: { title: 'ลงทะเบียนบัญชีใหม่', username: 'ชื่อผู้ใช้', password: 'รหัสผ่าน', email: 'อีเมล', cancel: 'ยกเลิก', submit: 'ลงทะเบียน', success: 'ส่งคำขอลงทะเบียนแล้ว โปรดรอการอนุมัติ', failed: 'การลงทะเบียนล้มเหลว', inputError: 'กรุณากรอกชื่อผู้ใช้และรหัสผ่าน', requestFailed: 'คำขอล้มเหลว' }, workspace: { title: 'พื้นที่ทำงาน AI', userTitle: 'พื้นที่ทำงาน AI ของ {username}', subtitle: 'เลือกผู้ช่วยหรือคลิกคำถามด่วนเพื่อเริ่ม', search: 'ค้นหาตัวแทน...', unknownAgent: 'แอปที่ไม่รู้จัก', quickQuestions: { title: 'คำถามด่วน', tip: 'คุณสามารถเพิ่มคำถามด่วนได้ที่การ์ดตัวแทนแต่ละใบ', noData: 'ยังไม่มีคำถามด่วน เพิ่มได้ที่การ์ดตัวแทนด้านล่าง', addTitle: 'กรุณากรอกหัวข้อคำถามด่วน (เช่น รายงานประจำวัน):', addQuestion: 'กรุณากรอกคำถามเต็มเพื่อส่งให้ AI:', confirmDelete: 'คุณแน่ใจหรือไม่ว่าจะลบคำถามด่วนนี้?', add: 'เพิ่มคำถามด่วน', edit: 'แก้ไขคำถามด่วน', addNew: 'เพิ่มคำถามด่วนใหม่', fields: { title: 'หัวข้อ', titlePlaceholder: 'เช่น รายงานประจำวัน', targetAgent: 'ตัวแทนเป้าหมาย', selectAgent: 'เลือกตัวแทน', content: 'เนื้อหาคำถาม', contentPlaceholder: 'กรอกคำถามเต็มหรือคำสั่ง...' }, msg: { fillAll: 'กรุณากรอกข้อมูลให้ครบถ้วน', saveFailed: 'บันทึกคำถามด่วนล้มเหลว' }, noDefined: 'ไม่มีคำถามด่วนที่กำหนดไว้' }, embedded: { title: 'ตัวแทนแบบฝัง', noData: 'ไม่มีตัวแทนแบบฝังที่กำหนดค่าไว้', noUrl: 'ไม่ได้กำหนดค่า URL iframe' }, announcements: { title: 'ประกาศบริษัท', noData: 'ยังไม่มีประกาศ' }, favorites: 'รายการโปรด', myAgents: 'ตัวแทนของฉัน', availableAgents: 'ตัวแทนที่ใช้ได้', noAgents: 'ไม่มีตัวแทนที่ใช้ได้', noFavorites: 'ไม่มีรายการโปรด', noPublicAgents: 'ไม่มีตัวแทนสาธารณะที่ใช้ได้ โปรดติดต่อผู้ดูแลระบบ', requestPermission: 'ขอสิทธิ์เข้าถึง', startChat: 'เริ่มการสนทนา', startChatShort: 'เริ่มแชท', logout: 'ออกจากระบบ', save: 'บันทึก', cancel: 'ยกเลิก', report: { title: 'รายงานของฉัน', noData: 'ไม่มีข้อมูล', totalCalls: 'การโทรทั้งหมด', recentCalls: '7 วันล่าสุด', lastCallTime: 'เวลาโทรล่าสุด', lastAgent: 'ตัวแทนล่าสุด', lastQuestion: 'คำถามล่าสุด', lastAnswer: 'คำตอบล่าสุด', lastScore: 'คะแนนล่าสุด', lastComment: 'ความคิดเห็นล่าสุด' }, permission: { denied: 'คุณไม่มีสิทธิ์เข้าถึงตัวแทนนี้ โปรดส่งคำขอ', reason: 'เหตุผลในการขอ', submit: 'ส่งคำขอ' } }, admin: { title: 'คอนโซลผู้ดูแลระบบ', subtitle: 'การกำหนดค่าและการจัดการระบบ', dashboard: 'แดชบอร์ด', agents: 'การจัดการตัวแทน', permissions: 'ผู้ใช้และสิทธิ์', requests: 'คำขออนุมัติ', reports: 'รายงานข้อมูล', save: 'บันทึกการเปลี่ยนแปลง', add: 'เพิ่ม', update: 'อัปเดต', cancel: 'ยกเลิก', close: 'ปิด', edit: 'แก้ไข', delete: 'ลบ', // Sidebar & Navigation nav: { dashboard: 'แดชบอร์ด', approvals: 'การอนุมัติผู้ใช้', users: 'การจัดการผู้ใช้', departments: 'การจัดการแผนก', agents: 'การจัดการตัวแทน', announcements: 'การจัดการประกาศ', questions: 'คำถามทั่วไป', wecom: 'WeCom', permissions: 'สิทธิ์แอปพลิเคชัน', requests: 'คำขอสิทธิ์', reports: 'รายงานข้อมูล' }, // Dashboard dash: { activeAgents: 'ตัวแทนที่ใช้งานอยู่', totalUsers: 'ผู้ใช้ทั้งหมด', totalConversations: 'การสนทนาทั้งหมด', avgRating: 'คะแนนเฉลี่ย', new: 'ใหม่' }, // Approvals approval: { title: 'การอนุมัติผู้ใช้', subtitle: 'ตรวจสอบและอนุมัติการลงทะเบียนผู้ใช้ใหม่', addUser: 'เพิ่มผู้ใช้', noPending: 'ไม่มีการอนุมัติที่รอดำเนินการ', approve: 'อนุมัติ', reject: 'ปฏิเสธ', confirmApprove: 'คุณแน่ใจหรือไม่ว่าต้องการอนุมัติผู้ใช้นี้?', confirmReject: 'คุณแน่ใจหรือไม่ว่าต้องการปฏิเสธผู้ใช้นี้? ข้อมูลจะถูกลบ', headers: { username: 'ชื่อผู้ใช้', nameId: 'ชื่อ/รหัส', contact: 'ติดต่อ', role: 'บทบาท', actions: 'การกระทำ' } }, // Users user: { title: 'การจัดการผู้ใช้', subtitle: 'จัดการข้อมูลและสถานะผู้ใช้', manageDepts: 'จัดการแผนก', cleanRejected: 'ล้างที่ถูกปฏิเสธ', batchDelete: 'ลบเป็นชุด', batchEdit: 'แก้ไขเป็นชุด', batchPermission: 'สิทธิ์เป็นชุด', addUser: 'เพิ่มผู้ใช้', filterUsername: 'กรองชื่อผู้ใช้', filterEmail: 'กรองอีเมล', filterRole: 'กรองบทบาท', allDepts: 'ทุกแผนก', hideRejected: 'ซ่อนที่ถูกปฏิเสธ', noUsers: 'ไม่พบผู้ใช้', editUser: 'แก้ไขผู้ใช้', createUser: 'สร้างผู้ใช้ใหม่', headers: { user: 'ผู้ใช้', role: 'บทบาท', dept: 'แผนก', status: 'สถานะ', actions: 'การกระทำ' }, fields: { realName: 'ชื่อจริง', employeeId: 'รหัสพนักงาน', phone: 'เบอร์โทรศัพท์', allowedAgents: 'ตัวแทนที่อนุญาต', username: 'ชื่อผู้ใช้', email: 'อีเมล', department: 'แผนก', role: 'บทบาท', password: 'รหัสผ่าน', passwordHint: '(เว้นว่างไว้หากไม่ต้องการเปลี่ยน)', noAgents: 'ไม่มีตัวแทนที่ใช้ได้' }, confirmClean: 'คุณแน่ใจหรือไม่ว่าต้องการลบผู้ใช้ที่ถูกปฏิเสธทั้งหมด?', confirmBatchDelete: 'คุณแน่ใจหรือไม่ว่าต้องการลบผู้ใช้ {count} คน?', msgs: { usernameRequired: 'กรุณากรอกชื่อผู้ใช้', passwordRequired: 'ต้องระบุรหัสผ่านสำหรับผู้ใช้ใหม่', created: 'สร้างผู้ใช้สำเร็จ', updated: 'อัปเดตผู้ใช้สำเร็จ', deleted: 'ลบผู้ใช้สำเร็จ', batchUpdateSuccess: 'อัปเดตเป็นชุดสำเร็จ', batchDeleteSuccess: 'ลบผู้ใช้ {count} คนแล้ว' } }, // Departments dept: { title: 'การจัดการแผนก', subtitle: 'จัดการโครงสร้างองค์กร', edit: 'แก้ไขแผนก', add: 'เพิ่มแผนกใหม่', noDepts: 'ยังไม่มีการกำหนดค่าแผนก', headers: { name: 'ชื่อ', code: 'รหัส', company: 'บริษัท', actions: 'การกระทำ' }, fields: { name: 'ชื่อ', namePlaceholder: 'เช่น แผนกไอที', code: 'รหัส', codePlaceholder: 'เช่น DEPT-001', company: 'บริษัท', companyPlaceholder: 'เช่น สำนักงานใหญ่', description: 'คำอธิบาย', descriptionPlaceholder: 'กรอกรายละเอียดแผนก...' }, confirmDelete: 'ลบแผนกนี้หรือไม่?', msg: { nameRequired: 'กรุณากรอกชื่อแผนก' } }, // Agents agent: { title: 'การกำหนดค่าตัวแทน', subtitle: 'จัดการผู้ช่วย AI และการรวมระบบ', new: 'ตัวแทนใหม่', edit: 'แก้ไขตัวแทน', create: 'สร้างตัวแทนใหม่', noAgents: 'ยังไม่มีการกำหนดค่าตัวแทน', headers: { name: 'ชื่อ', type: 'ประเภท', config: 'การกำหนดค่า', status: 'สถานะ', actions: 'การกระทำ' }, fields: { name: 'ชื่อ', namePlaceholder: 'เช่น ผู้ช่วยฝ่ายบุคคล', type: 'ประเภทการรวม', types: { api: 'การรวม API (Dify)', iframe: 'ฝัง Iframe' }, appId: 'Dify App ID', apiKey: 'API Key', baseUrl: 'API Base URL (ไม่บังคับ)', baseUrlPlaceholder: 'ค่าเริ่มต้น: ใช้การตั้งค่า Dify', iframeUrl: 'Iframe URL', description: 'คำอธิบาย', descPlaceholder: 'อธิบายสั้นๆ เกี่ยวกับตัวแทนนี้...' }, confirmDelete: 'คุณแน่ใจหรือไม่ว่าต้องการลบตัวแทนนี้?', manageAccess: 'จัดการสิทธิ์' }, // Common Questions question: { title: 'คำถามทั่วไป', subtitle: 'จัดการคำถามด่วนทั่วโลก', edit: 'แก้ไขคำถาม', add: 'เพิ่มคำถามใหม่', noData: 'ไม่มีคำถามทั่วไป', headers: { title: 'หัวข้อ', agent: 'ตัวแทน', order: 'ลำดับ', actions: 'การกระทำ' }, fields: { title: 'หัวข้อ', titlePlaceholder: 'เช่น เขียนรายงาน', targetAgent: 'ตัวแทนเป้าหมาย', sortOrder: 'ลำดับการเรียง', content: 'เนื้อหาคำถาม', contentPlaceholder: 'กรอกเนื้อหาคำถาม...' }, confirmDelete: 'คุณแน่ใจหรือไม่?', msg: { fillAll: 'กรุณากรอกข้อมูลให้ครบถ้วน' } }, announcement: { title: 'การจัดการประกาศ', subtitle: 'เผยแพร่ข่าวสารบริษัทให้ผู้ใช้ทุกคน', add: 'เผยแพร่ประกาศ', publish: 'เผยแพร่', noData: 'ยังไม่มีประกาศ', confirmDelete: 'คุณแน่ใจหรือไม่ว่าต้องการลบประกาศนี้?', fields: { title: 'หัวข้อ', content: 'เนื้อหา' }, msg: { fillAll: 'กรุณากรอกข้อมูลให้ครบถ้วน' } }, wecom: { title: 'การจัดการการผูกบัญชี WeCom', subtitle: 'ผูก/ยกเลิกการผูกบัญชี WeCom แบบแมนนวล และตรวจสอบบันทึกการเข้าสู่ระบบ', refresh: 'รีเฟรช', quickBind: 'ผูกแบบรวดเร็ว', bind: 'ผูก', unbind: 'ยกเลิกการผูก', bindingList: 'รายการที่ผูกบัญชี', boundOnly: 'แสดงเฉพาะที่ผูกแล้ว', noData: 'ไม่มีข้อมูล', auditTitle: 'บันทึกการเข้าสู่ระบบ (ล่าสุด 200 รายการ)', exportAudit: 'ส่งออกบันทึก', noAuditData: 'ไม่มีบันทึกการตรวจสอบ', confirmUnbind: 'ยืนยันยกเลิกการผูกบัญชี WeCom ของผู้ใช้นี้หรือไม่?', fields: { userId: 'รหัสผู้ใช้ (user_id)', wecomUserId: 'WeCom UserId', wecomUnionId: 'UnionId (ไม่บังคับ)' }, headers: { user: 'ผู้ใช้', roleStatus: 'บทบาท / สถานะ', wecomUserId: 'WeCom UserId', unionId: 'UnionId', actions: 'การกระทำ' }, auditHeaders: { time: 'เวลา', source: 'แหล่งที่มา', user: 'ผู้ใช้', status: 'สถานะ', reason: 'เหตุผล', ip: 'IP' }, filters: { allSources: 'ทุกแหล่งที่มา', allStatus: 'ทุกสถานะ' }, sources: { wecom: 'WeCom', password: 'รหัสผ่าน' }, auditStatus: { success: 'สำเร็จ', failed: 'ล้มเหลว' }, msg: { bindInputRequired: 'กรุณากรอก user_id และ wecom_userid', bindFailed: 'ผูกบัญชีไม่สำเร็จ', bindSuccess: 'ผูกบัญชีสำเร็จ', unbindFailed: 'ยกเลิกการผูกไม่สำเร็จ', boundConflict: 'บัญชี WeCom นี้ถูกผูกไว้แล้ว: {detail}' } }, // Permissions perm: { title: 'สิทธิ์แอปพลิเคชัน', subtitle: 'จัดการการเข้าถึงตัวแทนของผู้ใช้ผ่านตาราง', batchAssign: 'มอบหมายเป็นชุด', importCsv: 'นำเข้า CSV', exportCsv: 'ส่งออก CSV', filterName: 'กรองตามชื่อ/ชื่อผู้ใช้', filterDept: 'กรองตามแผนก', allRoles: 'ทุกบทบาท', headers: { user: 'ผู้ใช้', dept: 'แผนก' }, batchModal: { title: 'มอบหมายสิทธิ์เป็นชุด', selected: 'เลือกแล้ว: {count} ผู้ใช้', action: 'การกระทำ', add: 'เพิ่ม (ให้สิทธิ์)', remove: 'ลบ (เพิกถอนสิทธิ์)', set: 'ตั้งค่า (เขียนทับ)', selectAgents: 'เลือกตัวแทน', apply: 'นำไปใช้' }, agentModal: { title: 'จัดการสิทธิ์การเข้าถึง', agent: 'ตัวแทน:', save: 'บันทึกการเปลี่ยนแปลง' }, msg: { selectAgent: 'กรุณาเลือกตัวแทนอย่างน้อยหนึ่งรายการ', updateSuccess: 'อัปเดตสิทธิ์สำเร็จ' } }, // Requests request: { title: 'คำขอสิทธิ์', subtitle: 'ตรวจสอบคำขอเข้าถึงตัวแทนของผู้ใช้', noPending: 'ไม่มีคำขอที่รอดำเนินการ', headers: { userId: 'รหัสผู้ใช้', targetAgent: 'ตัวแทนเป้าหมาย', reason: 'เหตุผล', status: 'สถานะ', actions: 'การกระทำ' }, approve: 'อนุมัติ', reject: 'ปฏิเสธ' }, // Reports report: { title: 'รายงานข้อมูล: {table}', subtitle: 'มุมมองข้อมูลดิบและสถิติ', export: 'ส่งออก Excel', columnSettings: 'ตั้งค่าคอลัมน์', showSelection: 'แสดงการเลือก', hideSelection: 'ซ่อนการเลือก', deleting: 'กำลังลบ...', deleteSelected: 'ลบที่เลือก ({count})', tableSettings: 'ตั้งค่าตาราง', resetLayout: 'รีเซ็ตเลย์เอาต์', wrapText: 'ตัดบรรทัดอัตโนมัติ', wrapMaxHeightPx: 'ความสูงสูงสุดของการตัดบรรทัด (px)', advancedSortRules: 'กฎการเรียงลำดับขั้นสูง (เรียงตามลำดับความสำคัญ)', addRule: 'เพิ่มกฎ', noAdvancedSort: 'ยังไม่มีกฎการเรียงขั้นสูง จะใช้การคลิกหัวตารางเพื่อเรียงลำดับ', sortAsc: 'จากน้อยไปมาก', sortDesc: 'จากมากไปน้อย', moveUp: 'เลื่อนขึ้น', moveDown: 'เลื่อนลง', remove: 'ลบ', filterPlaceholder: 'กรอง...', totalRows: 'ทั้งหมด: {total}', showingRange: 'แสดง: {start}-{end} / {total}', paginationSummary: 'ทั้งหมด {total} รายการ, หน้า {page} / {pages}', perPage: 'ต่อหน้า', itemsUnit: 'รายการ', prevPage: 'ก่อนหน้า', nextPage: 'ถัดไป', enterFullscreen: 'เต็มหน้าจอ', exitFullscreen: 'ออกจากเต็มหน้าจอ', noData: 'ไม่มีข้อมูลสำหรับ {table}', usage: 'การวิเคราะห์การใช้งาน', byUser: 'ตามผู้ใช้', byAgent: 'ตามตัวแทน', columns: { id: 'ID', user_id: 'รหัสผู้ใช้', username: 'ชื่อผู้ใช้', real_name: 'ชื่อจริง', email: 'อีเมล', phone_number: 'เบอร์โทร', department: 'แผนก', employee_id: 'รหัสพนักงาน', role: 'บทบาท', status: 'สถานะ', is_active: 'เปิดใช้งาน', language: 'ภาษา', default_agent_id: 'รหัสตัวแทนเริ่มต้น', default_agent: 'ตัวแทนเริ่มต้น', created_at: 'เวลาสร้าง', updated_at: 'เวลาอัปเดต', last_login: 'เข้าสู่ระบบล่าสุด', last_login_at: 'เวลาเข้าสู่ระบบล่าสุด', app_id: 'รหัสแอป', dify_app_id: 'Dify App ID', dify_api_key: 'Dify API Key', api_base_url: 'API Base URL', agent_id: 'รหัสตัวแทน', agent_name: 'ชื่อตัวแทน', conversation_id: 'รหัสบทสนทนา', attribution_parts: 'ส่วนที่อ้างอิง', session_id: 'รหัสเซสชัน', message_id: 'รหัสข้อความ', question: 'คำถาม', query: 'คำถาม', answer: 'คำตอบ', retriever_resources: 'ทรัพยากรที่ดึงข้อมูล', response: 'การตอบกลับ', content: 'เนื้อหา', description: 'คำอธิบาย', extra_config: 'การตั้งค่าเพิ่มเติม', icon_url: 'URL ไอคอน', feedback: 'ข้อเสนอแนะ', rating: 'คะแนน', comment: 'ความคิดเห็น', model: 'โมเดล', tokens: 'โทเค็น', tokens_used: 'โทเค็นที่ใช้', tokens_prompt: 'โทเค็นพรอมป์ต์', tokens_completion: 'โทเค็นผลลัพธ์', total_tokens: 'โทเค็นรวม', latency_ms: 'ความหน่วง (ms)', latency: 'ความหน่วง', cost: 'ค่าใช้จ่าย', ip: 'IP', user_agent: 'User Agent', source: 'แหล่งที่มา', type: 'ประเภท', title: 'หัวข้อ', name: 'ชื่อ', code: 'รหัส', company: 'บริษัท', theme_preference: 'ค่ากำหนดธีม', password_hash: 'แฮชรหัสผ่าน', reset_token: 'โทเค็นรีเซ็ต', reset_token_expiry: 'เวลาหมดอายุโทเค็นรีเซ็ต' }, tables: { users: 'ผู้ใช้', chat_logs: 'บันทึกแชท', feedbacks: 'ข้อเสนอแนะ', departments: 'แผนก', agents: 'ตัวแทน', permission_requests: 'คำขอสิทธิ์' } }, // Batch Edit batchEdit: { title: 'แก้ไขผู้ใช้เป็นชุด', selected: 'เลือกแล้ว: {count} ผู้ใช้', update: 'อัปเดตผู้ใช้', fields: { dept: 'แผนก', role: 'บทบาท', status: 'สถานะ', keepUnchanged: 'คงเดิม' } }, // Common Messages role: { user: 'ผู้ใช้ทั่วไป', admin: 'ผู้ดูแลระบบ', guest: 'ผู้เยี่ยมชม' }, status: { active: 'ใช้งาน', disabled: 'ปิดใช้งาน', pending: 'รอดำเนินการ', rejected: 'ปฏิเสธ', approved: 'อนุมัติแล้ว' }, msg: { success: 'ทำรายการสำเร็จ', failed: 'ทำรายการล้มเหลว', saved: 'บันทึกสำเร็จ', requestFailed: 'คำขอล้มเหลว', allSaved: 'การเปลี่ยนแปลงทั้งหมดถูกบันทึกแล้ว', batchUpdateFailed: 'อัปเดตเป็นชุดล้มเหลว', batchPermissionUpdateFailed: 'การอัปเดตสิทธิ์เป็นชุดล้มเหลว', enterOneField: 'กรุณากรอกข้อมูลอย่างน้อยหนึ่งช่องเพื่ออัปเดต', batchDeleteResult: 'ลบผู้ใช้ {count} คนแล้ว' } }, chat: { defaultTitle: 'แชท', assistantLabel: 'ผู้ช่วย AI ของ HXOPS', placeholder: 'ถามอะไรก็ได้...', history: 'ประวัติการแชท', noHistory: 'ไม่มีประวัติ', newChat: 'แชทใหม่', rate: 'ให้คะแนนคำตอบนี้', send: 'ส่ง', agentId: 'รหัสตัวแทน:', loadingAgent: 'กำลังโหลดตัวแทน...', thinking: 'กำลังสร้างคำตอบ...', disclaimer: 'AI อาจทำผิดพลาดได้ โปรดตรวจสอบข้อมูลสำคัญ', suggestions: { whatCanYouDo: 'คุณทำอะไรได้บ้าง?', helpWriteReport: 'ช่วยฉันเขียนรายงาน', analyzeData: 'วิเคราะห์ข้อมูลนี้', creativeWriting: 'การเขียนเชิงสร้างสรรค์' }, welcome: { title: 'วันนี้ให้ฉันช่วยอะไรดี?', subtitle: 'เริ่มการสนทนาใหม่หรือเลือกจากประวัติ' }, feedback: { selectRating: 'กรุณาเลือกคะแนนก่อน', commentPlaceholder: 'เพิ่มความคิดเห็น (ไม่บังคับ)...', sent: 'ส่งแล้ว' } }, profile: { title: 'โปรไฟล์', personalInfo: 'ข้อมูลส่วนตัว', department: 'แผนก', language: 'ภาษา', roleAdmin: 'ผู้ดูแลระบบ', roleUser: 'ผู้ใช้', unsavedChanges: 'คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก', editHint: 'สลับไปที่โหมดแก้ไขเพื่ออัปเดตรายละเอียดโปรไฟล์', security: 'ความปลอดภัย', preferences: 'การตั้งค่า', edit: 'แก้ไข', cancel: 'ยกเลิก', saveSuccess: 'บันทึกโปรไฟล์สำเร็จ', passwordChanged: 'เปลี่ยนรหัสผ่านสำเร็จ', passwordMismatch: 'รหัสผ่านไม่ตรงกัน', currentPassword: 'รหัสผ่านปัจจุบัน', newPassword: 'รหัสผ่านใหม่', confirmPassword: 'ยืนยันรหัสผ่าน', changePassword: 'เปลี่ยนรหัสผ่าน' }, theme: { label: 'ธีม', light: 'สว่าง', dark: 'มืด', system: 'ตามระบบ', switchToLight: 'เปลี่ยนเป็นโหมดสว่าง', switchToDark: 'เปลี่ยนเป็นโหมดมืด' } } }; const i18n = createI18n({ legacy: false, // Use Composition API mode locale: 'zh-CN', // Default locale fallbackLocale: 'en', messages }); export default i18n;