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: '请求密码重置失败', casdoorLogin: 'Login with Casdoor', 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', wecomMatchAmbiguous: 'Multiple local users matched this WeCom account. Please contact admin.', wecomMatchAttrMissing: 'Required account attributes are missing in WeCom. Please contact admin.', wecomRetry: 'Retry WeCom Login', wecomTechnicalInfo: 'Technical info: {detail}', wecomBindPromptTitle: 'Verify and bind your local account', wecomBindPromptDesc: 'This is your first WeCom login for {name}. Enter one allowed field below to bind your local account.', wecomBindField: 'Verification field', wecomBindValue: 'Verification value', wecomBindValuePlaceholder: 'Enter your {field}', wecomBindPromptHint: 'The value must exactly match an existing local account. After success, this WeCom account will be bound automatically.', wecomBindSubmit: 'Verify and sign in', wecomBindInputNotFound: 'No local account matched the value you entered.', wecomBindInputAmbiguous: 'The value you entered matched multiple local accounts. Please contact the administrator.', wecomBindSessionExpired: 'This WeCom binding session expired. Please restart WeCom login.', wecomBindConflict: 'This WeCom account is already bound to another local account.', wecomBindFieldNotAllowed: 'The selected verification field is not allowed.', wecomBindValueRequired: 'Please enter a verification value.', wecomFieldLabels: { employee_id: 'employee ID', mobile: 'mobile number', email: 'email', match_rules: 'match rules' }, wecomRuleJoin: { and: 'and', or: 'or' }, wecomFieldGuides: { employee_id: 'Ask the administrator to verify the employee ID source configuration and make sure this member can return an employee ID.', mobile: 'Ask the administrator to fill in the mobile number in the WeCom directory, or adjust the matching rules to stop requiring mobile.', email: 'Ask the administrator to maintain the email field in the WeCom directory, or adjust the matching rules.', default: 'Ask the administrator to verify the WeCom directory fields and the current matching rules.' }, wecomDialogTitles: { matchAttrMissing: 'WeCom profile is incomplete', matchAmbiguous: 'Multiple local accounts matched', bindRequired: 'No local account can be linked', bindInputRequired: 'Verification is required before binding', bindConflict: 'This WeCom account is already linked elsewhere', notInScope: 'This member is not authorized for the app', stateExpired: 'WeCom login expired', accountDisabled: 'Local account is disabled', loginFailed: 'WeCom login failed' }, wecomDialogSummaries: { matchAttrMissing: 'WeCom did not return "{field}", so the system cannot match your local account automatically.', matchAmbiguous: 'This WeCom account matched multiple local accounts, so the system cannot decide which one to sign in.', matchAmbiguousWithCount: 'This WeCom account matched {count} local accounts, so the system cannot decide which one to sign in.', bindRequired: 'WeCom authentication succeeded, but no local account matched the current rules.', bindInputRequired: 'WeCom authentication succeeded. Please verify one local account field to complete the first binding.', bindConflict: 'This WeCom account is already bound to another local account.', notInScope: 'This member is outside the app visibility scope, or is not a member of this enterprise.' }, wecomDialogDetails: { currentRules: 'Current matching rules: {rules}', bindFallback: 'If you already have a local account, ask the administrator to bind this WeCom account manually.', ambiguousAction: 'Ask the administrator to clean duplicated employee ID/mobile/email data, or tighten the matching rules.', bindRequiredAction: 'Ask the administrator to create or bind the local account first, or enable auto-create users.', bindInputRequiredAction: 'Enter your employee ID, mobile number, or email on the next step to bind this WeCom account to your existing local account.', bindConflictAction: 'Ask the administrator to unbind the old account before binding this WeCom account again.', notInScopeAction: 'Ask the administrator to add this member or the member’s department into the WeCom app visibility scope.', retryLogin: 'Start a new WeCom login and try again.', contactAdmin: 'Please contact the administrator for assistance.' } }, 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', deleteDialog: { defaultTitle: 'Are you sure you want to delete?', defaultMessage: 'When clicked the OK button, this dialog will be closed after 1 second', cancel: 'Cancel', confirm: 'OK' } }, workspace: { title: 'AI Workspace', brandTitle: 'Hexin AI Workspace', languageLabel: 'Language', 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', deleteDialog: { title: 'Are you sure you want to delete?', message: 'When clicked the OK button, this dialog will be closed after 1 second' }, 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' }, wecomEntryNotice: 'Opened from WeCom message. Related context is ready.' }, 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', invalidEmail: 'Invalid email format', 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', test: 'Test', delete: 'Delete Agent', idLabel: 'ID', urlLabel: 'URL', testModalTitle: 'Agent Test', testModalAgent: 'Agent', testedAt: 'Test Time', testing: 'Testing...', retest: 'Retest', testingInProgress: 'Running test, please wait...', requestUrl: 'Request URL', outputInfo: 'Output Information', analysis: 'Final Analysis', testDone: 'Test completed.', testFailed: 'Test failed.', testFailedRequestException: 'Test failed: request exception occurred.', networkError: 'Network error' }, // 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', systemSettings: 'WeCom System Settings', integrationCopyTitle: 'WeCom Console Copy Helper', integrationCopyDesc: 'Copy these values directly into WeCom console fields.', integrationCopySecretsNote: 'Token and EncodingAESKey are empty until you set them above (or in env) and save. They must match the WeCom console; use Generate if you want random values, then paste the same values into WeCom.', publicBasePlaceholder: 'https://your-public-domain.com', generateAddresses: 'Generate URLs', generateToken: 'Generate', generateEncodingKey: 'Generate', copy: 'Copy', refresh: 'Refresh', quickBind: 'Quick Bind', bind: 'Bind', unbind: 'Unbind', bindingList: 'Binding List', boundOnly: 'Bound only', noData: 'No data', auditTitle: 'Login Audit (latest 200)', notifySettings: 'Notify Settings', notifyEnabled: 'Enable WeCom event notifications', notifyBaseUrl: 'Deep link base URL (e.g. https://ai.company.com)', notifyEvents: 'Enabled events (comma separated)', notifyMetrics: 'Delivery Metrics (30 days)', metricTotal: 'Total', metricSuccessRate: 'Send success', metricOpenedRate: 'Opened rate', metricWindowDays: 'Window(days)', 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)', enabled: 'Enable WeCom login', autoCreateUser: 'Auto create local user', corpId: 'Corp ID', agentId: 'Agent ID', secret: 'App Secret', redirectUri: 'OAuth Redirect URI', matchRules: 'Match Rules', matchOperator: 'Match Operator', firstLoginBindMode: 'First login bind mode', firstLoginInputFields: 'First login input fields', employeeIdSource: 'Employee ID Source', mobileNormalize: 'Normalize mobile number', publicBaseUrl: 'Public HTTPS base (extranet)' }, bindModes: { match_rules: 'Match automatically', input_verify: 'Ask user to verify' }, copyFields: { publicBaseUrl: 'Public base URL', callbackUrl: 'Callback URL', callbackToken: 'Token', encodingAesKey: 'EncodingAESKey', oauthRedirectUri: 'OAuth Redirect URI', homepageUrl: 'Application Homepage URL', trustedDomain: 'Trusted Domain', authorizeApi: 'Authorize API (GET)', loginApi: 'Login API (POST)' }, tips: { enabled: 'Master switch for WeCom OAuth login.', autoCreateUser: 'If no local user matches, automatically create one.', corpId: 'From WeCom app credentials.', agentId: 'Self-built app AgentId in WeCom.', secret: 'App secret used to get access token.', redirectUri: 'Must match WeCom trusted callback URL.', matchRules: 'Supported values: employee_id,mobile,email.', matchOperator: 'AND = all fields required, OR = any field matched.', firstLoginBindMode: 'match_rules = use WeCom profile to auto-match. input_verify = ask the user to enter one allowed field on first login.', firstLoginInputFields: 'Allowed fields for first-login verification, comma separated. Supported: employee_id,mobile,email.', employeeIdSource: 'userid or extattr:.', mobileNormalize: 'Normalize 86/0086 and symbols before matching.', callbackToken: 'Used to verify callback signatures.', encodingAesKey: 'Used for encrypted callback mode.', callbackUrl: 'WeCom callback receiver URL for messages/events.', homepageUrl: 'Application homepage opened in WeCom.', trustedDomain: 'OAuth trusted domain configured in WeCom.', publicBaseUrl: 'HTTPS origin reachable from the internet (WeCom servers). Used to build callback and OAuth URLs. Priority: this field → notify base URL → current request host.' }, 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' }, auditMessages: { loginSuccess: 'Login succeeded', matchAttrMissing: 'Missing required match field: {field}', matchAmbiguous: 'Matched multiple local accounts', bindRequired: 'No local account can be linked', bindInputRequired: 'Waiting for the user to verify a local account field', bindInputNotFound: 'No local account matched the user-entered verification value', bindInputAmbiguous: 'The user-entered verification value matched multiple local accounts', bindConflict: 'This WeCom account is already linked to another local account', notInScope: 'Member is outside the app visibility scope or not in this enterprise', invalidState: 'Invalid or expired login state', missingCode: 'Callback is missing code', accountDisabled: 'Local account is disabled', authFailed: 'WeCom authorization failed: {detail}', userFetchFailed: 'Failed to fetch WeCom member profile: {detail}', exception: 'Exception: {detail}' }, auditMeta: { rules: 'Rules: {rules}', result: 'Result: {result}', errorCode: 'Code: {code}' }, auditResults: { already_bound: 'Logged in through an already bound WeCom account', matched_and_bound: 'Matched and bound the local account by rules', auto_created: 'Auto-created and bound a new local account', input_verified_and_bound: 'Verified one field on first login and bound the local account' }, 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}', copySuccess: 'Copied', copyFailed: 'Copy failed', publicBaseRequired: 'Enter a valid public HTTPS domain or host (e.g. https://ai.company.com).' } }, // 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', feedback_module: 'Feedback Module', feedback_type: 'Feedback Type', source_page: 'Source Page' }, tables: { users: 'Users', chat_logs: 'Chat Logs', general_feedbacks: 'Feedback', feedbacks: 'Answer Rating', departments: 'Departments', agents: 'Agents', permission_requests: 'Permission Requests' }, feedbackValues: { types: { feature_suggestion: 'Feature Suggestion', issue_feedback: 'Issue Feedback', experience_optimization: 'Experience Optimization' }, modules: { knowledge_base: 'Knowledge Base', general: 'General', workflow: 'Workflow', account_permission: 'Account & Permissions' }, pages: { workspace: 'Workspace', chat: 'Chat', unknown: 'Unknown' } } }, // 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: '请求密码重置失败', casdoorLogin: 'Casdoor 登录', wecomLogin: '企业微信登录', wecomConnecting: '正在连接企业微信...', wecomStartFailed: '启动企业微信登录失败', wecomInvalidState: '企业微信登录状态无效', wecomStateExpired: '企业微信登录会话已过期,请重试。', wecomBindRequired: '当前企业微信账号未绑定本地用户,请联系管理员。', wecomAccountDisabled: '账号已禁用,请联系管理员。', wecomLoginFailed: '企业微信登录失败', wecomMatchAmbiguous: '该企业微信账号匹配到多个本地账号,请联系管理员处理。', wecomMatchAttrMissing: '企业微信缺少必要匹配字段,请联系管理员。', wecomRetry: '重新发起企业微信登录', wecomTechnicalInfo: '技术信息:{detail}', wecomBindPromptTitle: '首次登录请校验并绑定本站账号', wecomBindPromptDesc: '当前企业微信身份为 {name}。请输入一个允许的字段,用来绑定你已有的本站账号。', wecomBindField: '校验字段', wecomBindValue: '校验值', wecomBindValuePlaceholder: '请输入你的{field}', wecomBindPromptHint: '输入值必须和本站已有账号完全匹配。绑定成功后,当前企业微信账号会自动写回该用户表。', wecomBindSubmit: '校验并登录', wecomBindInputNotFound: '没有找到与你输入内容匹配的本站账号。', wecomBindInputAmbiguous: '你输入的内容匹配到了多个本站账号,请联系管理员处理。', wecomBindSessionExpired: '本次企业微信绑定会话已过期,请重新发起企业微信登录。', wecomBindConflict: '当前企业微信账号已绑定到其他本站账号。', wecomBindFieldNotAllowed: '当前选择的校验字段不被允许。', wecomBindValueRequired: '请输入校验值。', wecomFieldLabels: { employee_id: '工号', mobile: '手机号', email: '邮箱', match_rules: '匹配规则' }, wecomRuleJoin: { and: '且', or: '或' }, wecomFieldGuides: { employee_id: '请管理员检查“工号来源字段”配置,并确认该成员在企业微信里能返回工号。', mobile: '请管理员在企业微信通讯录中补齐该成员手机号,或调整匹配规则,不再强依赖手机号。', email: '请管理员在企业微信通讯录中维护该成员邮箱,或调整匹配规则。', default: '请管理员检查企业微信通讯录字段是否齐全,以及当前匹配规则是否合理。' }, wecomDialogTitles: { matchAttrMissing: '企业微信资料不完整', matchAmbiguous: '匹配到了多个本站账号', bindRequired: '未找到可绑定的本站账号', bindInputRequired: '首次绑定前需要人工校验', bindConflict: '该企业微信账号已绑定到别的账号', notInScope: '当前成员未被该应用授权', stateExpired: '企业微信登录已过期', accountDisabled: '本地账号已被禁用', loginFailed: '企业微信登录失败' }, wecomDialogSummaries: { matchAttrMissing: '企业微信没有返回“{field}”,所以系统无法按当前规则自动匹配你的本站账号。', matchAmbiguous: '当前企业微信账号匹配到了多个本站账号,系统无法自动判断该登录哪一个。', matchAmbiguousWithCount: '当前企业微信账号匹配到了 {count} 个本站账号,系统无法自动判断该登录哪一个。', bindRequired: '企业微信侧认证已经成功,但本站没有找到符合当前规则的账号。', bindInputRequired: '企业微信侧认证已经成功,请先输入一个本站字段完成首次绑定。', bindConflict: '当前企业微信账号已经绑定到其他本站账号。', notInScope: '当前成员不在企业微信应用可见范围内,或不是本企业成员。' }, wecomDialogDetails: { currentRules: '当前匹配规则:{rules}', bindFallback: '如果你已经有本站账号,可以请管理员先手动绑定当前企业微信账号。', ambiguousAction: '请管理员清理重复的工号、手机号或邮箱数据,或者收紧匹配规则。', bindRequiredAction: '请管理员先创建或绑定本站账号,或者开启自动创建用户。', bindInputRequiredAction: '下一步请输入你的工号、手机号或邮箱中的一个,校验成功后就会把当前企业微信账号绑定到已有本站账号。', bindConflictAction: '请管理员先解除旧绑定,再重新绑定当前企业微信账号。', notInScopeAction: '请管理员到企业微信后台,把该成员或其所在部门加入该应用的可见范围。', retryLogin: '请重新发起一次企业微信登录。', contactAdmin: '如需帮助,请联系管理员。' } }, 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: '手机号' } }, common: { errorOccurred: '发生错误', deleteDialog: { defaultTitle: '您确定要删除吗?', defaultMessage: '点击“确定”按钮后,该对话框将在 1 秒后关闭', cancel: '取消', confirm: '确定' } }, workspace: { title: 'AI 工作台', brandTitle: 'AI工作台', languageLabel: '语言', userTitle: '{username} 的 AI 工作台', subtitle: '选择一个助手,或点击常用问题快速开始', search: '搜索应用...', unknownAgent: '未知应用', quickQuestions: { title: '常用问题', tip: '在每个应用卡片上也可以添加常用问题', noData: '暂无常用问题,可以在下方应用卡片上添加。', addTitle: '请输入常用问题的标题(例如:写日报):', addQuestion: '请输入要发送给 AI 的完整问题内容:', confirmDelete: '确认删除该常用问题吗?', add: '添加问题', edit: '编辑常用问题', addNew: '添加新常用问题', deleteDialog: { title: '您确定要删除吗?', message: '点击“确定”按钮后,该对话框将在 1 秒后关闭' }, 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: '提交申请' }, wecomEntryNotice: '已从企业微信消息进入,已为你准备好相关上下文。' }, 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: '新用户必须设置密码', invalidEmail: '邮箱格式不正确', 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: '管理权限', test: '测试', delete: '删除应用', idLabel: 'ID', urlLabel: '链接', testModalTitle: '应用测试', testModalAgent: '应用', testedAt: '测试时间', testing: '测试中...', retest: '重新测试', testingInProgress: '正在执行测试,请稍候...', requestUrl: '请求地址', outputInfo: '输出信息', analysis: '最终结果分析', testDone: '测试已完成。', testFailed: '测试失败。', testFailedRequestException: '测试失败:请求过程出现异常。', networkError: '网络错误' }, // 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: '手动绑定/解绑企业微信账号,并查看登录审计记录', systemSettings: '企业微信系统配置', integrationCopyTitle: '企微后台复制助手', integrationCopyDesc: '以下字段可直接复制到企业微信管理后台对应配置项。', integrationCopySecretsNote: 'Token 与 EncodingAESKey 在未填写并保存前会显示为空:需与企微后台完全一致。可在上方填写后保存,或使用「生成」随机生成,再将相同值填入企微后台。', publicBasePlaceholder: 'https://你的外网域名', generateAddresses: '生成地址', generateToken: '生成', generateEncodingKey: '生成', copy: '复制', refresh: '刷新', quickBind: '快速绑定', bind: '绑定', unbind: '解绑', bindingList: '绑定列表', boundOnly: '只看已绑定', noData: '暂无数据', auditTitle: '登录审计(最近 200 条)', notifySettings: '触达设置', notifyEnabled: '启用企微事件通知', notifyBaseUrl: '深链基地址(例如:https://ai.company.com)', notifyEvents: '启用事件(英文逗号分隔)', notifyMetrics: '触达指标(近30天)', metricTotal: '总触达', metricSuccessRate: '发送成功率', metricOpenedRate: '回流打开率', metricWindowDays: '统计窗口(天)', exportAudit: '导出审计', noAuditData: '暂无审计记录', confirmUnbind: '确认解绑该用户的企业微信账号?', fields: { userId: '用户ID (user_id)', wecomUserId: '企业微信 UserId', wecomUnionId: 'UnionId (可选)', enabled: '启用企业微信登录', autoCreateUser: '无匹配用户时自动创建', corpId: '企业ID (CorpID)', agentId: '应用AgentID', secret: '应用Secret', redirectUri: 'OAuth 回调地址', matchRules: '匹配规则', matchOperator: '匹配运算符', firstLoginBindMode: '首次登录绑定模式', firstLoginInputFields: '首次登录可输入字段', employeeIdSource: '工号来源字段', mobileNormalize: '手机号归一化', publicBaseUrl: '外网 HTTPS 基地址' }, bindModes: { match_rules: '按规则自动匹配', input_verify: '要求用户输入校验' }, copyFields: { publicBaseUrl: '外网基地址', callbackUrl: '回调URL', callbackToken: 'Token', encodingAesKey: 'EncodingAESKey', oauthRedirectUri: 'OAuth 回调地址', homepageUrl: '应用主页URL', trustedDomain: '可信域名', authorizeApi: '授权说明接口 (GET)', loginApi: '登录接口 (POST)' }, tips: { enabled: '企业微信登录总开关。', autoCreateUser: '未匹配到本地账号时,是否自动创建账号。', corpId: '来自企业微信应用凭据。', agentId: '企业微信自建应用中的 AgentId。', secret: '用于获取 access_token 的应用密钥。', redirectUri: '必须与企业微信配置的可信回调地址一致。', matchRules: '支持 employee_id,mobile,email,英文逗号分隔。', matchOperator: 'AND 表示全部字段都匹配,OR 表示任一字段匹配。', firstLoginBindMode: 'match_rules 表示继续用企微资料自动匹配;input_verify 表示首次登录时要求员工输入一个字段完成绑定。', firstLoginInputFields: '首次绑定允许员工输入的字段,英文逗号分隔。支持 employee_id,mobile,email。', employeeIdSource: '可填 userid 或 extattr:<名称>。', mobileNormalize: '匹配前会清洗 86/0086 前缀和分隔符。', callbackToken: '用于回调签名校验。', encodingAesKey: '用于安全模式消息解密。', callbackUrl: '企业微信消息/事件回调接收地址。', homepageUrl: '员工在企微内打开应用时访问的地址。', trustedDomain: '企业微信 OAuth 可信域名。', publicBaseUrl: '企微服务器可访问的 HTTPS 根地址,用于生成回调与 OAuth 相关地址。优先级:本字段 → 触达深链基地址 → 当前访问主机。' }, 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: '失败' }, auditMessages: { loginSuccess: '登录成功', matchAttrMissing: '缺少用于匹配的字段:{field}', matchAmbiguous: '匹配到了多个本站账号', bindRequired: '未找到可绑定的本站账号', bindInputRequired: '等待员工输入一个本站字段完成首次绑定', bindInputNotFound: '员工输入的校验值未匹配到本站账号', bindInputAmbiguous: '员工输入的校验值匹配到了多个本站账号', bindConflict: '该企业微信账号已绑定到其他本站账号', notInScope: '成员不在应用可见范围内,或不是本企业成员', invalidState: '登录 state 无效或已过期', missingCode: '回调中缺少 code', accountDisabled: '本地账号已被禁用', authFailed: '企业微信授权失败:{detail}', userFetchFailed: '获取企业微信成员资料失败:{detail}', exception: '异常:{detail}' }, auditMeta: { rules: '规则:{rules}', result: '结果:{result}', errorCode: '代码:{code}' }, auditResults: { already_bound: '通过已绑定的企业微信账号直接登录', matched_and_bound: '按规则匹配并完成账号绑定', auto_created: '自动创建本站账号并完成绑定', input_verified_and_bound: '首次登录时经员工输入字段校验后完成绑定' }, msg: { bindInputRequired: '请输入 user_id 与 wecom_userid', bindFailed: '绑定失败', bindSuccess: '绑定成功', unbindFailed: '解绑失败', boundConflict: '该企业微信账号已被绑定:{detail}', copySuccess: '已复制', copyFailed: '复制失败', publicBaseRequired: '请填写有效的外网 HTTPS 地址或域名(例如 https://ai.company.com)。' } }, // 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: '聊天日志', general_feedbacks: '意见反馈', 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: '登錄請求失敗', forgotPassword: '忘記密碼?', rememberMe: '30天內免登入', announcements: '公告', forgotPasswordDesc: '輸入您的郵箱以重設密碼', findPassword: '找回密碼', casdoorLogin: 'Casdoor 登入', wecomLogin: '企業微信登錄', wecomConnecting: '正在連接企業微信...', wecomStartFailed: '啟動企業微信登錄失敗', wecomInvalidState: '企業微信登入狀態無效', wecomStateExpired: '企業微信登入會話已過期,請重試。', wecomBindRequired: '當前企業微信帳號未綁定本地用戶,請聯繫管理員。', wecomAccountDisabled: '帳號已被禁用,請聯繫管理員。', wecomMatchAmbiguous: '該企業微信帳號匹配到多個本地帳號,請聯繫管理員處理。', wecomMatchAttrMissing: '企業微信缺少必要匹配字段,請聯繫管理員。', wecomLoginFailed: '企業微信登錄失敗', wecomRetry: '重新發起企業微信登入', wecomTechnicalInfo: '技術資訊:{detail}', wecomBindPromptTitle: '首次登入請校驗並綁定本站帳號', wecomBindPromptDesc: '當前企業微信身份為 {name}。請輸入一個允許的字段,用來綁定你已有的本站帳號。', wecomBindField: '校驗字段', wecomBindValue: '校驗值', wecomBindValuePlaceholder: '請輸入你的{field}', wecomBindPromptHint: '輸入值必須和本站已有帳號完全匹配。綁定成功後,當前企業微信帳號會自動寫回該用戶表。', wecomBindSubmit: '校驗並登入', wecomBindInputNotFound: '沒有找到與你輸入內容匹配的本站帳號。', wecomBindInputAmbiguous: '你輸入的內容匹配到了多個本站帳號,請聯繫管理員處理。', wecomBindSessionExpired: '本次企業微信綁定會話已過期,請重新發起企業微信登入。', wecomBindConflict: '當前企業微信帳號已綁定到其他本站帳號。', wecomBindFieldNotAllowed: '當前選擇的校驗字段不被允許。', wecomBindValueRequired: '請輸入校驗值。', wecomFieldLabels: { employee_id: '工號', mobile: '手機號', email: '郵箱', match_rules: '匹配規則' }, wecomRuleJoin: { and: '且', or: '或' }, wecomFieldGuides: { employee_id: '請管理員檢查「工號來源字段」配置,並確認該成員在企業微信中能返回工號。', mobile: '請管理員在企業微信通訊錄中補齊該成員手機號,或調整匹配規則,不再強依賴手機號。', email: '請管理員在企業微信通訊錄中維護該成員郵箱,或調整匹配規則。', default: '請管理員檢查企業微信通訊錄字段是否齊全,以及當前匹配規則是否合理。' }, wecomDialogTitles: { matchAttrMissing: '企業微信資料不完整', matchAmbiguous: '匹配到了多個本站帳號', bindRequired: '未找到可綁定的本站帳號', bindInputRequired: '首次綁定前需要人工校驗', bindConflict: '該企業微信帳號已綁定到其他帳號', notInScope: '當前成員未被該應用授權', stateExpired: '企業微信登入已過期', accountDisabled: '本地帳號已被禁用', loginFailed: '企業微信登入失敗' }, wecomDialogSummaries: { matchAttrMissing: '企業微信沒有返回「{field}」,所以系統無法按當前規則自動匹配你的本站帳號。', matchAmbiguous: '當前企業微信帳號匹配到了多個本站帳號,系統無法自動判斷該登入哪一個。', matchAmbiguousWithCount: '當前企業微信帳號匹配到了 {count} 個本站帳號,系統無法自動判斷該登入哪一個。', bindRequired: '企業微信側驗證已成功,但本站沒有找到符合當前規則的帳號。', bindInputRequired: '企業微信側驗證已成功,請先輸入一個本站字段完成首次綁定。', bindConflict: '當前企業微信帳號已經綁定到其他本站帳號。', notInScope: '當前成員不在企業微信應用可見範圍內,或不是本企業成員。' }, wecomDialogDetails: { currentRules: '當前匹配規則:{rules}', bindFallback: '如果你已經有本站帳號,可以請管理員先手動綁定當前企業微信帳號。', ambiguousAction: '請管理員清理重複的工號、手機號或郵箱資料,或者收緊匹配規則。', bindRequiredAction: '請管理員先建立或綁定本站帳號,或者開啟自動建立使用者。', bindInputRequiredAction: '下一步請輸入你的工號、手機號或郵箱中的一個,校驗成功後就會把當前企業微信帳號綁定到已有本站帳號。', bindConflictAction: '請管理員先解除舊綁定,再重新綁定當前企業微信帳號。', notInScopeAction: '請管理員到企業微信後台,把該成員或其所在部門加入該應用的可見範圍。', retryLogin: '請重新發起一次企業微信登入。', contactAdmin: '如需協助,請聯繫管理員。' } }, landing: { hero: { prefix: '釋放', highlight: '生成式 AI 的力量', subtitle: '訪問為您企業量身定制的強大 AI 助手套件。安全、可擴展、智能。' }, agent: { role: 'AI 助手' } }, register: { title: '註冊新賬號', username: '用戶名', password: '密碼', email: '郵箱', cancel: '取消', submit: '提交註冊', success: '註冊申請已提交,請等待管理員審批', failed: '註冊失敗', inputError: '請輸入用戶名和密碼', requestFailed: '請求失敗' }, common: { errorOccurred: '發生錯誤', deleteDialog: { defaultTitle: '您確定要刪除嗎?', defaultMessage: '點擊「確定」按鈕後,此對話框將在 1 秒後關閉', cancel: '取消', confirm: '確定' } }, workspace: { title: 'AI 工作台', brandTitle: 'AI工作台', languageLabel: '語言', userTitle: '{username} 的 AI 工作台', subtitle: '選擇一個助手,或點擊常用問題快速開始', search: '搜索應用...', unknownAgent: '未知應用', quickQuestions: { title: '常用問題', tip: '在每個應用卡片上也可以添加常用問題', noData: '暫無常用問題,可以在下方應用卡片上添加。', addTitle: '請輸入常用問題的標題(例如:寫日報):', addQuestion: '請輸入要發送給 AI 的完整問題內容:', confirmDelete: '確認刪除該常用問題嗎?', add: '添加問題', edit: '編輯常用問題', addNew: '添加新常用問題', deleteDialog: { title: '您確定要刪除嗎?', message: '點擊「確定」按鈕後,此對話框將在 1 秒後關閉' }, 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: '提交申請' }, wecomEntryNotice: '已從企業微信消息進入,已為你準備好相關上下文。' }, 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: '新用戶必須設置密碼', invalidEmail: '郵箱格式不正確', 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: '管理權限', test: '測試', delete: '刪除應用', idLabel: 'ID', urlLabel: '連結', testModalTitle: '應用測試', testModalAgent: '應用', testedAt: '測試時間', testing: '測試中...', retest: '重新測試', testingInProgress: '正在執行測試,請稍候...', requestUrl: '請求位址', outputInfo: '輸出資訊', analysis: '最終結果分析', testDone: '測試已完成。', testFailed: '測試失敗。', testFailedRequestException: '測試失敗:請求過程發生異常。', networkError: '網路錯誤' }, // 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: '手動綁定/解綁企業微信帳號,並查看登入審計記錄', systemSettings: '企業微信系統配置', integrationCopyTitle: '企微後台複製助手', integrationCopyDesc: '以下字段可直接複製到企業微信管理後台對應配置項。', integrationCopySecretsNote: 'Token 與 EncodingAESKey 在未填寫並保存前會顯示為空:需與企微後台完全一致。可在上方填寫後保存,或使用「生成」隨機生成,再將相同值填入企微後台。', publicBasePlaceholder: 'https://你的外網域名', generateAddresses: '生成地址', generateToken: '生成', generateEncodingKey: '生成', copy: '複製', refresh: '刷新', quickBind: '快速綁定', bind: '綁定', unbind: '解綁', bindingList: '綁定列表', boundOnly: '僅看已綁定', noData: '暫無資料', auditTitle: '登入審計(最近 200 條)', notifySettings: '觸達設置', notifyEnabled: '啟用企微事件通知', notifyBaseUrl: '深鏈基地址(例如:https://ai.company.com)', notifyEvents: '啟用事件(英文逗號分隔)', notifyMetrics: '觸達指標(近30天)', metricTotal: '總觸達', metricSuccessRate: '發送成功率', metricOpenedRate: '回流打開率', metricWindowDays: '統計窗口(天)', exportAudit: '導出審計', noAuditData: '暫無審計記錄', confirmUnbind: '確認解綁該用戶的企業微信帳號?', fields: { userId: '用戶ID (user_id)', wecomUserId: '企業微信 UserId', wecomUnionId: 'UnionId (可選)', enabled: '啟用企業微信登入', autoCreateUser: '無匹配用戶時自動建立', corpId: '企業ID (CorpID)', agentId: '應用AgentID', secret: '應用Secret', redirectUri: 'OAuth 回調地址', matchRules: '匹配規則', matchOperator: '匹配運算符', firstLoginBindMode: '首次登入綁定模式', firstLoginInputFields: '首次登入可輸入字段', employeeIdSource: '工號來源字段', mobileNormalize: '手機號歸一化', callbackToken: '回調 Token', encodingAesKey: 'EncodingAESKey', callbackUrl: '回調URL', homepageUrl: '應用主頁URL', trustedDomain: '可信域名', publicBaseUrl: '外網 HTTPS 基地址' }, bindModes: { match_rules: '按規則自動匹配', input_verify: '要求用戶輸入校驗' }, copyFields: { publicBaseUrl: '外網基地址', callbackUrl: '回調URL', callbackToken: 'Token', encodingAesKey: 'EncodingAESKey', oauthRedirectUri: 'OAuth 回調地址', homepageUrl: '應用主頁URL', trustedDomain: '可信域名', authorizeApi: '授權說明接口 (GET)', loginApi: '登入接口 (POST)' }, tips: { enabled: '企業微信登入總開關。', autoCreateUser: '未匹配到本地帳號時,是否自動建立帳號。', corpId: '來自企業微信應用憑據。', agentId: '企業微信自建應用中的 AgentId。', secret: '用於取得 access_token 的應用密鑰。', redirectUri: '必須與企業微信配置的可信回調地址一致。', matchRules: '支援 employee_id,mobile,email,英文逗號分隔。', matchOperator: 'AND 表示全部字段都匹配,OR 表示任一字段匹配。', firstLoginBindMode: 'match_rules 表示繼續用企微資料自動匹配;input_verify 表示首次登入時要求員工輸入一個字段完成綁定。', firstLoginInputFields: '首次綁定允許員工輸入的字段,英文逗號分隔。支援 employee_id,mobile,email。', employeeIdSource: '可填 userid 或 extattr:<名稱>。', mobileNormalize: '匹配前會清洗 86/0086 前綴和分隔符。', callbackToken: '用於回調簽章校驗。', encodingAesKey: '用於安全模式訊息解密。', callbackUrl: '企業微信訊息/事件回調接收地址。', homepageUrl: '員工在企微內打開應用時訪問的地址。', trustedDomain: '企業微信 OAuth 可信域名。', publicBaseUrl: '企微伺服器可訪問的 HTTPS 根地址,用於生成回調與 OAuth 相關地址。優先級:本字段 → 觸達深鏈基地址 → 當前訪問主機。' }, 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: '失敗' }, auditMessages: { loginSuccess: '登入成功', matchAttrMissing: '缺少用於匹配的字段:{field}', matchAmbiguous: '匹配到了多個本站帳號', bindRequired: '未找到可綁定的本站帳號', bindInputRequired: '等待員工輸入一個本站字段完成首次綁定', bindInputNotFound: '員工輸入的校驗值未匹配到本站帳號', bindInputAmbiguous: '員工輸入的校驗值匹配到了多個本站帳號', bindConflict: '該企業微信帳號已綁定到其他本站帳號', notInScope: '成員不在應用可見範圍內,或不是本企業成員', invalidState: '登入 state 無效或已過期', missingCode: '回調中缺少 code', accountDisabled: '本地帳號已被禁用', authFailed: '企業微信授權失敗:{detail}', userFetchFailed: '獲取企業微信成員資料失敗:{detail}', exception: '異常:{detail}' }, auditMeta: { rules: '規則:{rules}', result: '結果:{result}', errorCode: '代碼:{code}' }, auditResults: { already_bound: '透過已綁定的企業微信帳號直接登入', matched_and_bound: '按規則匹配並完成帳號綁定', auto_created: '自動建立本站帳號並完成綁定', input_verified_and_bound: '首次登入時經員工輸入字段校驗後完成綁定' }, msg: { bindInputRequired: '請輸入 user_id 與 wecom_userid', bindFailed: '綁定失敗', bindSuccess: '綁定成功', unbindFailed: '解綁失敗', boundConflict: '該企業微信帳號已被綁定:{detail}', copySuccess: '已複製', copyFailed: '複製失敗', publicBaseRequired: '請填寫有效的外網 HTTPS 地址或域名(例如 https://ai.company.com)。' } }, // 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: '聊天日誌', general_feedbacks: '意見反饋', 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: 'คำขอเข้าสู่ระบบล้มเหลว', forgotPassword: 'ลืมรหัสผ่าน?', rememberMe: 'จดจำการเข้าสู่ระบบ 30 วัน', announcements: 'ประกาศ', forgotPasswordDesc: 'กรอกอีเมลเพื่อรีเซ็ตรหัสผ่าน', findPassword: 'ค้นหารหัสผ่าน', casdoorLogin: 'เข้าสู่ระบบด้วย Casdoor', wecomLogin: 'เข้าสู่ระบบด้วย WeCom', wecomConnecting: 'กำลังเชื่อมต่อ WeCom...', wecomStartFailed: 'เริ่มต้นการเข้าสู่ระบบด้วย WeCom ไม่สำเร็จ', wecomInvalidState: 'สถานะการเข้าสู่ระบบ WeCom ไม่ถูกต้อง', wecomStateExpired: 'เซสชันการเข้าสู่ระบบ WeCom หมดอายุแล้ว กรุณาลองใหม่', wecomBindRequired: 'บัญชี WeCom นี้ยังไม่เชื่อมกับผู้ใช้ในระบบ กรุณาติดต่อผู้ดูแลระบบ', wecomAccountDisabled: 'บัญชีนี้ถูกปิดใช้งาน กรุณาติดต่อผู้ดูแลระบบ', wecomMatchAmbiguous: 'บัญชี WeCom นี้ตรงกับผู้ใช้หลายบัญชี กรุณาติดต่อผู้ดูแลระบบ', wecomMatchAttrMissing: 'ข้อมูลที่จำเป็นจาก WeCom ไม่ครบ กรุณาติดต่อผู้ดูแลระบบ', wecomLoginFailed: 'เข้าสู่ระบบด้วย WeCom ล้มเหลว', wecomRetry: 'ลองเข้าสู่ระบบ WeCom ใหม่', wecomTechnicalInfo: 'ข้อมูลทางเทคนิค: {detail}', wecomBindPromptTitle: 'ยืนยันและผูกบัญชีของคุณในการเข้าสู่ระบบครั้งแรก', wecomBindPromptDesc: 'บัญชี WeCom ปัจจุบันคือ {name} กรุณากรอกข้อมูลที่อนุญาต 1 รายการเพื่อผูกกับบัญชีเดิมของคุณในระบบ', wecomBindField: 'ฟิลด์สำหรับยืนยัน', wecomBindValue: 'ค่ายืนยัน', wecomBindValuePlaceholder: 'กรอก{field}ของคุณ', wecomBindPromptHint: 'ค่าที่กรอกต้องตรงกับบัญชีที่มีอยู่ในระบบทุกตัวอักษร หากสำเร็จ ระบบจะผูกบัญชี WeCom นี้ให้อัตโนมัติ', wecomBindSubmit: 'ยืนยันและเข้าสู่ระบบ', wecomBindInputNotFound: 'ไม่พบบัญชีในระบบที่ตรงกับค่าที่คุณกรอก', wecomBindInputAmbiguous: 'ค่าที่คุณกรอกตรงกับหลายบัญชีในระบบ กรุณาติดต่อผู้ดูแลระบบ', wecomBindSessionExpired: 'เซสชันการผูกบัญชี WeCom นี้หมดอายุแล้ว กรุณาเริ่มการเข้าสู่ระบบ WeCom ใหม่', wecomBindConflict: 'บัญชี WeCom นี้ถูกผูกกับบัญชีในระบบอื่นอยู่แล้ว', wecomBindFieldNotAllowed: 'ไม่อนุญาตให้ใช้ฟิลด์นี้ในการยืนยัน', wecomBindValueRequired: 'กรุณากรอกค่ายืนยัน', wecomFieldLabels: { employee_id: 'รหัสพนักงาน', mobile: 'หมายเลขโทรศัพท์', email: 'อีเมล', match_rules: 'กฎการจับคู่' }, wecomRuleJoin: { and: 'และ', or: 'หรือ' }, wecomFieldGuides: { employee_id: 'ให้ผู้ดูแลตรวจสอบการตั้งค่าแหล่งที่มาของรหัสพนักงาน และยืนยันว่าระบบ WeCom ส่งค่ารหัสพนักงานของสมาชิกคนนี้กลับมาได้', mobile: 'ให้ผู้ดูแลกรอกหมายเลขโทรศัพท์ของสมาชิกคนนี้ในสมุดรายชื่อ WeCom หรือปรับกฎการจับคู่ไม่ให้บังคับใช้หมายเลขโทรศัพท์', email: 'ให้ผู้ดูแลเพิ่มอีเมลของสมาชิกคนนี้ในสมุดรายชื่อ WeCom หรือปรับกฎการจับคู่', default: 'ให้ผู้ดูแลตรวจสอบข้อมูลในสมุดรายชื่อ WeCom และกฎการจับคู่ปัจจุบัน' }, wecomDialogTitles: { matchAttrMissing: 'ข้อมูลโปรไฟล์ WeCom ไม่ครบ', matchAmbiguous: 'ตรงกับหลายบัญชีในระบบ', bindRequired: 'ไม่พบบัญชีในระบบที่เชื่อมได้', bindInputRequired: 'ต้องยืนยันก่อนผูกบัญชีครั้งแรก', bindConflict: 'บัญชี WeCom นี้เชื่อมกับบัญชีอื่นอยู่แล้ว', notInScope: 'สมาชิกคนนี้ยังไม่ได้รับสิทธิ์ในแอป', stateExpired: 'การเข้าสู่ระบบ WeCom หมดอายุแล้ว', accountDisabled: 'บัญชีในระบบถูกปิดใช้งาน', loginFailed: 'เข้าสู่ระบบด้วย WeCom ล้มเหลว' }, wecomDialogSummaries: { matchAttrMissing: 'WeCom ไม่ได้ส่งค่า "{field}" กลับมา จึงไม่สามารถจับคู่กับบัญชีในระบบของคุณโดยอัตโนมัติได้', matchAmbiguous: 'บัญชี WeCom นี้ตรงกับหลายบัญชีในระบบ จึงไม่สามารถเลือกบัญชีที่จะเข้าสู่ระบบได้อัตโนมัติ', matchAmbiguousWithCount: 'บัญชี WeCom นี้ตรงกับ {count} บัญชีในระบบ จึงไม่สามารถเลือกบัญชีที่จะเข้าสู่ระบบได้อัตโนมัติ', bindRequired: 'การยืนยันตัวตนผ่าน WeCom สำเร็จแล้ว แต่ไม่พบบัญชีในระบบที่ตรงกับกฎปัจจุบัน', bindInputRequired: 'การยืนยันตัวตนผ่าน WeCom สำเร็จแล้ว กรุณากรอกข้อมูลของบัญชีในระบบ 1 รายการเพื่อทำการผูกครั้งแรกให้เสร็จ', bindConflict: 'บัญชี WeCom นี้เชื่อมกับบัญชีในระบบอื่นอยู่แล้ว', notInScope: 'สมาชิกคนนี้อยู่นอกขอบเขตการมองเห็นของแอป หรือไม่ใช่สมาชิกขององค์กรนี้' }, wecomDialogDetails: { currentRules: 'กฎการจับคู่ปัจจุบัน: {rules}', bindFallback: 'หากคุณมีบัญชีในระบบอยู่แล้ว ให้ผู้ดูแลช่วยผูกบัญชี WeCom นี้ด้วยตนเอง', ambiguousAction: 'ให้ผู้ดูแลล้างข้อมูลรหัสพนักงาน หมายเลขโทรศัพท์ หรืออีเมลที่ซ้ำกัน หรือปรับกฎการจับคู่ให้เข้มขึ้น', bindRequiredAction: 'ให้ผู้ดูแลสร้างหรือผูกบัญชีในระบบก่อน หรือเปิดการสร้างผู้ใช้อัตโนมัติ', bindInputRequiredAction: 'ในขั้นตอนถัดไป ให้กรอกรหัสพนักงาน หมายเลขโทรศัพท์ หรืออีเมลอย่างใดอย่างหนึ่ง เพื่อผูกบัญชี WeCom นี้กับบัญชีเดิมในระบบ', bindConflictAction: 'ให้ผู้ดูแลยกเลิกการผูกเดิมก่อน แล้วจึงผูกบัญชี WeCom นี้อีกครั้ง', notInScopeAction: 'ให้ผู้ดูแลเพิ่มสมาชิกคนนี้หรือแผนกของสมาชิกเข้าไปในขอบเขตการมองเห็นของแอป WeCom', retryLogin: 'เริ่มต้นการเข้าสู่ระบบ WeCom ใหม่อีกครั้ง', contactAdmin: 'กรุณาติดต่อผู้ดูแลระบบเพื่อขอความช่วยเหลือ' } }, landing: { hero: { prefix: 'ปลดปล่อยพลังของ', highlight: 'Generative AI', subtitle: 'เข้าถึงชุดผู้ช่วย AI ที่ทรงพลังซึ่งปรับแต่งมาเพื่อความต้องการขององค์กรของคุณ ปลอดภัย ปรับขนาดได้ และชาญฉลาด' }, agent: { role: 'ผู้ช่วย AI' } }, register: { title: 'ลงทะเบียนบัญชีใหม่', username: 'ชื่อผู้ใช้', password: 'รหัสผ่าน', email: 'อีเมล', cancel: 'ยกเลิก', submit: 'ลงทะเบียน', success: 'ส่งคำขอลงทะเบียนแล้ว โปรดรอการอนุมัติ', failed: 'การลงทะเบียนล้มเหลว', inputError: 'กรุณากรอกชื่อผู้ใช้และรหัสผ่าน', requestFailed: 'คำขอล้มเหลว' }, common: { errorOccurred: 'เกิดข้อผิดพลาด', deleteDialog: { defaultTitle: 'คุณแน่ใจหรือไม่ว่าต้องการลบ?', defaultMessage: 'เมื่อกดปุ่มตกลง กล่องโต้ตอบนี้จะปิดหลังจาก 1 วินาที', cancel: 'ยกเลิก', confirm: 'ตกลง' } }, workspace: { title: 'พื้นที่ทำงาน AI', brandTitle: 'Hexin AI Workspace', languageLabel: 'ภาษา', userTitle: 'พื้นที่ทำงาน AI ของ {username}', subtitle: 'เลือกผู้ช่วยหรือคลิกคำถามด่วนเพื่อเริ่ม', search: 'ค้นหาตัวแทน...', unknownAgent: 'แอปที่ไม่รู้จัก', quickQuestions: { title: 'คำถามด่วน', tip: 'คุณสามารถเพิ่มคำถามด่วนได้ที่การ์ดตัวแทนแต่ละใบ', noData: 'ยังไม่มีคำถามด่วน เพิ่มได้ที่การ์ดตัวแทนด้านล่าง', addTitle: 'กรุณากรอกหัวข้อคำถามด่วน (เช่น รายงานประจำวัน):', addQuestion: 'กรุณากรอกคำถามเต็มเพื่อส่งให้ AI:', confirmDelete: 'คุณแน่ใจหรือไม่ว่าจะลบคำถามด่วนนี้?', add: 'เพิ่มคำถามด่วน', edit: 'แก้ไขคำถามด่วน', addNew: 'เพิ่มคำถามด่วนใหม่', deleteDialog: { title: 'คุณแน่ใจหรือไม่ว่าต้องการลบ?', message: 'เมื่อกดปุ่มตกลง กล่องโต้ตอบนี้จะปิดหลังจาก 1 วินาที' }, 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: 'ส่งคำขอ' }, wecomEntryNotice: 'เปิดมาจากข้อความ WeCom และเตรียมบริบทที่เกี่ยวข้องไว้ให้แล้ว' }, 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: 'ต้องระบุรหัสผ่านสำหรับผู้ใช้ใหม่', invalidEmail: 'รูปแบบอีเมลไม่ถูกต้อง', 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: 'จัดการสิทธิ์', test: 'ทดสอบ', delete: 'ลบแอป', idLabel: 'ID', urlLabel: 'ลิงก์', testModalTitle: 'ทดสอบแอป', testModalAgent: 'แอป', testedAt: 'เวลาทดสอบ', testing: 'กำลังทดสอบ...', retest: 'ทดสอบอีกครั้ง', testingInProgress: 'กำลังดำเนินการทดสอบ โปรดรอสักครู่...', requestUrl: 'ที่อยู่คำขอ', outputInfo: 'ข้อมูลเอาต์พุต', analysis: 'วิเคราะห์ผลลัพธ์สุดท้าย', testDone: 'ทดสอบเสร็จสิ้น', testFailed: 'ทดสอบล้มเหลว', testFailedRequestException: 'ทดสอบล้มเหลว: เกิดข้อผิดพลาดระหว่างการร้องขอ', networkError: 'เครือข่ายผิดพลาด' }, // 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 แบบแมนนวล และตรวจสอบบันทึกการเข้าสู่ระบบ', systemSettings: 'การตั้งค่าระบบ WeCom', integrationCopyTitle: 'ตัวช่วยคัดลอกค่าไปยังคอนโซล WeCom', integrationCopyDesc: 'คัดลอกค่าด้านล่างไปใส่ในช่องที่ตรงกันในคอนโซลผู้ดูแล WeCom ได้โดยตรง', integrationCopySecretsNote: 'Token และ EncodingAESKey จะแสดงค่าว่างจนกว่าจะตั้งค่าและบันทึกด้านบน ต้องใช้ค่าเดียวกับในคอนโซล WeCom หากต้องการสุ่มค่าใหม่ ให้กดสร้าง แล้วนำค่าเดียวกันไปใส่ใน WeCom', publicBasePlaceholder: 'https://your-public-domain.com', generateAddresses: 'สร้าง URL', generateToken: 'สร้าง', generateEncodingKey: 'สร้าง', copy: 'คัดลอก', refresh: 'รีเฟรช', quickBind: 'ผูกแบบรวดเร็ว', bind: 'ผูก', unbind: 'ยกเลิกการผูก', bindingList: 'รายการที่ผูกบัญชี', boundOnly: 'แสดงเฉพาะที่ผูกแล้ว', noData: 'ไม่มีข้อมูล', auditTitle: 'บันทึกการเข้าสู่ระบบ (ล่าสุด 200 รายการ)', notifySettings: 'การตั้งค่าการแจ้งเตือน', notifyEnabled: 'เปิดใช้การแจ้งเตือนเหตุการณ์ WeCom', notifyBaseUrl: 'Base URL สำหรับ deep link (เช่น https://ai.company.com)', notifyEvents: 'เหตุการณ์ที่เปิดใช้ (คั่นด้วยจุลภาค)', notifyMetrics: 'สถิติการส่ง (30 วัน)', metricTotal: 'ทั้งหมด', metricSuccessRate: 'อัตราส่งสำเร็จ', metricOpenedRate: 'อัตราการเปิด', metricWindowDays: 'ช่วงเวลา(วัน)', exportAudit: 'ส่งออกบันทึก', noAuditData: 'ไม่มีบันทึกการตรวจสอบ', confirmUnbind: 'ยืนยันยกเลิกการผูกบัญชี WeCom ของผู้ใช้นี้หรือไม่?', fields: { userId: 'รหัสผู้ใช้ (user_id)', wecomUserId: 'WeCom UserId', wecomUnionId: 'UnionId (ไม่บังคับ)', enabled: 'เปิดใช้การเข้าสู่ระบบ WeCom', autoCreateUser: 'สร้างผู้ใช้ในระบบอัตโนมัติเมื่อไม่พบการจับคู่', corpId: 'Corp ID', agentId: 'Agent ID', secret: 'App Secret', redirectUri: 'OAuth Redirect URI', matchRules: 'กฎการจับคู่', matchOperator: 'ตัวดำเนินการจับคู่', firstLoginBindMode: 'โหมดการผูกบัญชีครั้งแรก', firstLoginInputFields: 'ฟิลด์ที่ใช้กรอกในครั้งแรก', employeeIdSource: 'แหล่งที่มาของรหัสพนักงาน', mobileNormalize: 'ปรับรูปแบบเบอร์โทรศัพท์', callbackToken: 'Callback Token', encodingAesKey: 'EncodingAESKey', callbackUrl: 'Callback URL', homepageUrl: 'Application Homepage URL', trustedDomain: 'Trusted Domain', publicBaseUrl: 'Public HTTPS base' }, bindModes: { match_rules: 'จับคู่อัตโนมัติ', input_verify: 'ให้ผู้ใช้ยืนยันเอง' }, copyFields: { publicBaseUrl: 'Public base URL', callbackUrl: 'Callback URL', callbackToken: 'Token', encodingAesKey: 'EncodingAESKey', oauthRedirectUri: 'OAuth Redirect URI', homepageUrl: 'Application Homepage URL', trustedDomain: 'Trusted Domain', authorizeApi: 'Authorize API (GET)', loginApi: 'Login API (POST)' }, tips: { enabled: 'สวิตช์หลักสำหรับการเข้าสู่ระบบ WeCom', autoCreateUser: 'หากไม่พบผู้ใช้ในระบบ ให้สร้างใหม่อัตโนมัติ', corpId: 'รับมาจากข้อมูลแอป WeCom', agentId: 'AgentId ของแอปที่สร้างเองใน WeCom', secret: 'ความลับของแอปสำหรับขอ access token', redirectUri: 'ต้องตรงกับ trusted callback URL ที่ตั้งไว้ใน WeCom', matchRules: 'รองรับ employee_id,mobile,email คั่นด้วยจุลภาค', matchOperator: 'AND = ต้องตรงทุกฟิลด์, OR = ตรงอย่างน้อยหนึ่งฟิลด์', firstLoginBindMode: 'match_rules = ใช้ข้อมูลจาก WeCom จับคู่อัตโนมัติ, input_verify = ให้ผู้ใช้กรอกหนึ่งฟิลด์ในครั้งแรกเพื่อผูกบัญชี', firstLoginInputFields: 'ฟิลด์ที่อนุญาตให้กรอกในการผูกครั้งแรก คั่นด้วยจุลภาค รองรับ employee_id,mobile,email', employeeIdSource: 'ใช้ userid หรือ extattr:', mobileNormalize: 'ล้างคำนำหน้า 86/0086 และสัญลักษณ์ก่อนจับคู่', callbackToken: 'ใช้สำหรับตรวจสอบลายเซ็น callback', encodingAesKey: 'ใช้กับ callback แบบเข้ารหัส', callbackUrl: 'URL สำหรับรับ callback ของข้อความ/เหตุการณ์จาก WeCom', homepageUrl: 'หน้าแรกของแอปที่เปิดใน WeCom', trustedDomain: 'โดเมนที่เชื่อถือได้สำหรับ OAuth ใน WeCom', publicBaseUrl: 'ต้นทาง HTTPS ที่เข้าถึงได้จากภายนอกสำหรับเซิร์ฟเวอร์ WeCom ใช้สร้าง URL callback และ OAuth ลำดับความสำคัญ: ช่องนี้ → notify base URL → host ปัจจุบัน' }, 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: 'ล้มเหลว' }, auditMessages: { loginSuccess: 'เข้าสู่ระบบสำเร็จ', matchAttrMissing: 'ขาดฟิลด์ที่จำเป็นสำหรับการจับคู่: {field}', matchAmbiguous: 'ตรงกับหลายบัญชีในระบบ', bindRequired: 'ไม่พบบัญชีในระบบที่เชื่อมได้', bindInputRequired: 'กำลังรอให้ผู้ใช้กรอกข้อมูลบัญชีในระบบเพื่อผูกครั้งแรก', bindInputNotFound: 'ค่าที่ยืนยันโดยผู้ใช้ไม่ตรงกับบัญชีใดในระบบ', bindInputAmbiguous: 'ค่าที่ยืนยันโดยผู้ใช้ตรงกับหลายบัญชีในระบบ', bindConflict: 'บัญชี WeCom นี้เชื่อมกับบัญชีในระบบอื่นอยู่แล้ว', notInScope: 'สมาชิกอยู่นอกขอบเขตการมองเห็นของแอป หรือไม่ใช่สมาชิกขององค์กรนี้', invalidState: 'สถานะการเข้าสู่ระบบไม่ถูกต้องหรือหมดอายุ', missingCode: 'callback ไม่มี code', accountDisabled: 'บัญชีในระบบถูกปิดใช้งาน', authFailed: 'การยืนยันตัวตนผ่าน WeCom ล้มเหลว: {detail}', userFetchFailed: 'ดึงข้อมูลสมาชิกจาก WeCom ไม่สำเร็จ: {detail}', exception: 'ข้อผิดพลาด: {detail}' }, auditMeta: { rules: 'กฎ: {rules}', result: 'ผลลัพธ์: {result}', errorCode: 'โค้ด: {code}' }, auditResults: { already_bound: 'เข้าสู่ระบบผ่านบัญชี WeCom ที่ผูกไว้แล้ว', matched_and_bound: 'จับคู่ตามกฎและผูกบัญชีสำเร็จ', auto_created: 'สร้างบัญชีในระบบอัตโนมัติและผูกสำเร็จ', input_verified_and_bound: 'ยืนยันหนึ่งฟิลด์ในการเข้าสู่ระบบครั้งแรกและผูกบัญชีสำเร็จ' }, msg: { bindInputRequired: 'กรุณากรอก user_id และ wecom_userid', bindFailed: 'ผูกบัญชีไม่สำเร็จ', bindSuccess: 'ผูกบัญชีสำเร็จ', unbindFailed: 'ยกเลิกการผูกไม่สำเร็จ', boundConflict: 'บัญชี WeCom นี้ถูกผูกไว้แล้ว: {detail}', copySuccess: 'คัดลอกแล้ว', copyFailed: 'คัดลอกไม่สำเร็จ', publicBaseRequired: 'กรอกโดเมนหรือที่อยู่ HTTPS ภายนอกที่ถูกต้อง เช่น https://ai.company.com' } }, // 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: 'บันทึกแชท', general_feedbacks: 'ข้อเสนอแนะทั่วไป', 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;