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: 'Hexin Precision', highlight: 'AI Agent Application Platform', subtitle: 'In the world of AI, we hope you enjoy your work and live happily.' }, 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', close: 'Close', cancel: 'Cancel', loading: 'Loading...', refresh: 'Refresh', yes: 'Yes', no: 'No', 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' } }, scheduleRuns: { title: 'Schedule Runs', refresh: 'Refresh', tip: 'Only runs where you are the owner or in notification list are shown.', loading: 'Loading...', empty: 'No visible records', viewExcel: 'View Excel', columns: { runNo: 'Run No.', schedule: 'Schedule', start: 'Start', end: 'End', status: 'Status', total: 'Total', success: 'Success', failed: 'Failed' }, msg: { loadFailed: 'Failed to load schedule runs' } }, filePreview: { title: 'File Preview', download: 'Download File', downloading: 'Downloading...', tooLarge: 'The file is too large for online preview. Please click Download File above to get the original file.', previewFailed: 'Preview failed: ', msg: { downloadFailed: 'Download failed: {reason}', unknownError: 'Unknown error' } }, kbDifySettings: { title: 'Dify Settings', subtitle: 'Manage Dify connection and default sync parameters for the knowledge base module.', loading: 'Loading settings...', save: 'Save Settings', saving: 'Saving...', msg: { loadFailed: 'Failed to load Dify settings', saveFailed: 'Failed to save Dify settings', saved: 'Dify settings saved' } }, kbDifyHealth: { title: 'Dify Health Check', subtitle: 'View Dify connectivity and local sync overview for knowledge base module.', loading: 'Checking...', reachable: 'Reachable', unreachable: 'Unreachable', notConfigured: 'Not configured', datasetCount: 'Dataset Count', configured: 'Configured: ', boundGroups: 'Bound Groups', localSyncRecords: 'Local Sync Records: ', syncingVersions: 'Syncing Versions', syncedVersions: 'Synced Versions', pendingSyncJobs: 'Pending Sync Jobs', msg: { loadFailed: 'Failed to load Dify health status' } }, kbAdmin: { title: 'Knowledge Base Management', subtitle: 'Phase 1 includes group, job and Dify entry management. Cleaning pipeline will be added later.', toolbar: 'Knowledge base tools', difySettings: 'Dify Settings', healthCheck: 'Health Check', goWorkspace: 'Go to Workspace', groupsTitle: 'Group Overview', groupsEmpty: 'No group yet, or knowledge base APIs are not ready.', noDescription: 'No description', documentCount: '{count} docs', updatedAt: 'Updated at: ', jobsTitle: 'Job Queue Placeholder', jobsEmpty: 'No jobs. Cleaning, syncing and retry jobs will be integrated in phase 2.', noJobMessage: 'No job message', jobMeta: 'Doc: {docId} · Version: {versionId} · Progress: {progress}%', running: 'Running...', runJob: 'Run Job', form: { editTitle: 'Edit Knowledge Base Group', createTitle: 'Create Knowledge Base Group', editDesc: 'Edit name and description of the group. List refreshes after save.', createDesc: 'Used to validate the knowledge base management entry and API shell in main platform.', saving: 'Saving...', submitting: 'Submitting...', saveChanges: 'Save Changes', create: 'Create Group', groupName: 'Group Name', groupNamePlaceholder: 'e.g. Finance Policy Library', groupDesc: 'Group Description', groupDescPlaceholder: 'Describe business scope or cleaning goals of this group', cancelEdit: 'Cancel Edit' }, deleteDialog: { title: 'Are you sure you want to delete?', message: 'This will delete knowledge base group \"{name}\". This action cannot be undone.' }, msg: { loadGroupsFailed: 'Failed to load knowledge base groups', loadJobsFailed: 'Failed to load jobs', nameRequired: 'Please enter group name', createFailed: 'Creation failed', created: 'Group created', updated: 'Group updated', deleteFailed: 'Delete failed', deleted: 'Group deleted', runFailed: 'Job run failed', runDone: 'Job executed' } }, 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.', lang: { zhCN: 'Simplified Chinese', zhTW: 'Traditional Chinese' }, mobileTabs: { me: 'Me', history: 'History', applications: 'Applications' }, nav: { profile: 'Profile', admin: 'Admin Console', applications: 'Applications', knowledgeBase: 'Knowledge Base', scheduleRuns: 'Schedule Runs', shippingNotice: 'Shipping Notice', feedback: 'Feedback', updates: 'Recent Updates', backToChat: 'Back to Chat', logout: 'Logout' }, history: { empty: 'No chat history yet', untitled: 'Untitled Conversation' }, schedule: { title: 'Schedule Runs', refresh: 'Refresh', search: 'Search', reset: 'Reset', loading: 'Loading...', empty: 'No schedule runs', download: 'Download', noPendingData: 'No pending data', filters: { name: 'Schedule Name', namePlaceholder: 'Enter schedule name', start: 'Start Time', end: 'End Time', status: 'Status' }, columns: { name: 'Schedule Name', runNo: 'Run No.', triggerType: 'Trigger', start: 'Start Time', end: 'End Time', duration: 'Duration', status: 'Status', total: 'Total', success: 'Success', failed: 'Failed', detail: 'Detail' }, trigger: { manual: 'Manual', test: 'Test', timed: 'Scheduled' }, status: { all: 'All', success: 'Success', partialFailed: 'Partial Success', failed: 'Failed', running: 'Running', queued: 'Queued' }, msg: { downloadExcelFailed: 'Failed to download Excel' } }, shippingNotice: { title: 'Shipping Notice Cases', subtitle: 'Read-only view. Continue processing in Chat.', refresh: 'Refresh', search: 'Search', loading: 'Loading...', empty: 'No shipping cases yet', selectCase: 'Select a case to view details', loadFailed: 'Failed to load case', openChat: 'Continue in Chat', download: 'Download Excel', lines: 'Shipment lines', qty: 'Qty', events: 'Event log', filters: { status: 'Status' }, fields: { status: 'Process status', match: 'Match status', shipTo: 'Ship to', freightRef: 'Freight ref no.' }, status: { all: 'All', created: 'Created', waitingInventory: 'Waiting inventory', inventoryReady: 'Inventory ready', matched: 'Matched', waitingUpload: 'Waiting upload', uploaded: 'Uploaded', uploadFailed: 'Upload failed' } }, profile: { msg: { loadFailed: 'Failed to load profile', saveFailed: 'Failed to save profile', saved: 'Profile saved', changePasswordFailed: 'Failed to change password' } }, msg: { casdoorNotMatchedContactAdmin: 'Casdoor login succeeded, but no local account matched. Please contact the administrator.', casdoorNotMatchedNeedLocalUser: 'Casdoor login succeeded, but no local account matched. Ask the administrator to create a local user with the same username or email.', localAccountDisabled: 'This local account is disabled. Please contact the administrator.' } }, 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', knowledgeBase: 'Knowledge Base', announcements: 'Announcements', questions: 'Common Questions', wecom: 'WeCom', permissions: 'App Permissions', requests: 'Permission Requests', reports: 'Data Reports', schedules: 'Schedule Management' }, // 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 schedule: { overviewTitle: 'Schedule Management Overview', workbenchTitle: 'Schedule Management Workbench', overviewSubtitle: 'Click a schedule card to open the workbench.', workbenchSubtitle: 'Schedule list on the left, run records on the right.', refresh: 'Refresh schedules', stats: { total: 'Total schedules', enabled: 'Enabled', disabled: 'Disabled', running: 'Running' }, sectionOverview: 'Schedule Management Overview', switchByCard: 'Switch by card', addTitle: 'Add schedule', addHint: 'Click the button to fill in schedule fields in a dialog.', addButton: 'Add schedule', emptyList: 'No schedules yet. Create one first.', loading: 'Loading...', enabled: 'Enabled', disabled: 'Disabled', scheduleNo: 'No.', config: 'Config', owner: 'Owner', lastRun: 'Last run', nextRun: 'Next run', noSelection: 'No schedule selected', selectedHint: 'Selected schedule · Last run {time}', runBatches: 'Run batches', totalProcessed: 'Total processed', totalSuccess: 'Total success', totalFailed: 'Total failed', listTitle: 'Schedule list', recordsTitle: '{name} · Run records', recordsSubtitle: 'Run record details are shown below.', noSelectionHint: 'Select a schedule from the list on the left first.', filterStart: 'Start', filterEnd: 'End', query: 'Search', reset: 'Reset', queryingRuns: 'Loading records...', noRunRecords: 'No run records yet.', runLogs: 'Run logs', stepsCount: '{count} steps', viewDetail: 'View details', resizeColumn: 'Drag to resize {label} column', notified: 'Notified', notifyError: 'Error', download: 'Download', log: 'Log', actions: { edit: 'Edit', start: 'Start', pause: 'Pause', run: 'Run', test: 'Test', delete: 'Delete' }, columns: { runNo: 'Run ID', startedAt: 'Started at', finishedAt: 'Finished at', status: 'Status', totalCount: 'Processed', successCount: 'Success', failedCount: 'Failed', wecomNotified: 'WeCom notify', detail: 'Detail', log: 'Log' }, form: { editTitle: 'Edit schedule', createTitle: 'Add schedule', name: 'Schedule name', namePlaceholder: 'e.g. RoHS auto review schedule', owner: 'Schedule owner', noUsers: 'No users available', selectOwner: 'Select an owner', dataSourceConfig: 'Data source & execution config', databaseDirect: 'Database', externalApi: 'External API', querying: 'Querying...', testQuery: 'Test query', expandConfig: 'Expand config', collapseConfig: 'Collapse config', dataSourceSection: 'Data source config', waitSeconds: 'Wait time (seconds)', noAgents: 'No agents available', agentDisabled: 'Disabled', cronTitle: 'Cron visual editor', cronHint: 'Cron expression is generated automatically from the frequency you choose.', everyMinutes: 'Every N minutes', hourly: 'Hourly', daily: 'Daily', weekly: 'Weekly', minuteInterval: 'Minute interval', minuteOfHour: 'Minute of hour', hour: 'Hour', minute: 'Minute', weekday: 'Weekday', cronPreview: 'Cron preview', nextRun: 'Next run', notifyEnabled: 'Enable notifications', selectNotifyUsers: 'Select notification recipients...', enableOnCreate: 'Enable after creation', cancel: 'Cancel', saving: 'Saving...', saveChanges: 'Save changes', createSchedule: 'Create schedule' }, testRun: { title: 'Test run — {name}', subtitle: 'Edit WHERE clause, limit rows, run quickly and inspect each step', close: 'Close', running: 'Running...', start: 'Start test run', waitingHint: 'Dify calls may take a while, please wait...', total: 'Total', success: 'Success', failed: 'Failed', skipped: 'Skipped', limitSummary: 'Limit {limit} rows | Dify Agent ID: {agentId}', noAgent: 'None', stepLogs: 'Step logs', viewSql: 'View execution SQL', errors: 'Errors ({count})', queryResult: 'Query result', resultSummary: '{total} total, showing {showing}', viewGeneratedSql: 'View generated SQL' }, status: { all: 'All', success: 'Success', partialFailed: 'Partial Success', failed: 'Failed', running: 'Running', queued: 'Queued' }, weekday: { mon: 'Mon', tue: 'Tue', wed: 'Wed', thu: 'Thu', fri: 'Fri', sat: 'Sat', sun: 'Sun' }, step: { fetchSrm: 'Fetch external system data', callDify: 'Call Dify service', writebackSrm: 'Write back to external system data', callInternalApi: 'Call internal API', preDify: 'Dify pre-processing' }, deleteDialogTitle: 'Delete Schedule', deleteConfirmMessage: 'Confirm deleting schedule \"{name}\"?', msg: { testRunFailed: 'Test run failed', testQueryFailed: 'Test query failed', configRequired: 'At least one of Dify Agent, SQL config, or external API is required.', headerLabelsJsonInvalid: 'header_labels JSON format is invalid.', apiHeadersJsonInvalid: 'API Headers JSON format is invalid.', runNowFailed: 'Manual run failed', downloadExcelFailed: 'Failed to download Excel', deleteFailed: 'Delete schedule failed' } }, 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.', createNewChat: 'New Chat', shippingNoticeContinue: 'Please continue shipping case {caseId}. Call get_case_status first and tell me the next step.', clearAll: 'Clear All', clearOneRecord: 'Clear This Record', agents: 'Agents', noOtherAgents: 'No other agents', noAvailableAgents: 'No available agents', collapseAgents: 'Collapse agents', expandAgents: 'Expand agents', generalFeedback: 'Feedback', language: 'Language', langZhCn: 'Simplified Chinese', langEn: 'English', langZhTw: 'Traditional Chinese', langTh: 'Thai', logout: 'Logout', welcomeTitle: 'Hello, I am Hexin AI Digital Human', askAnything: 'Ask me anything...', voiceFeature: 'Voice feature', collapseBrowser: 'Collapse Browser', openBrowser: 'Open Browser', kb: { enterprise: 'Enterprise Knowledge Base', erp: 'ERP Knowledge Base' }, browser: 'Browser', closeBrowser: 'Close Browser', browserInputPlaceholder: 'Enter URL, e.g. https://example.com', open: 'Open', refresh: 'Refresh', openInNewTab: 'Open in new tab', browserHint1: 'Open webpages here while chatting.', browserHint2: 'Supports https://, localhost, and intranet IP.', feedbackSubmitSuccess: 'Feedback submitted successfully', noData: 'No data', loading: 'Loading...', loadMore: 'Load more', loadAll: 'Load all', noMoreData: 'No more data', loginOaSystem: 'Login OA System', employeeId: 'Employee ID', enterOaPassword: 'Please enter OA password', confirmLogin: 'Confirm login', currentUser: 'Current User', dayUnit: 'day', hourUnit: 'hour', leaveBalanceInsufficient: '**{label} balance is insufficient.**', leaveBalanceTableLeaveType: 'Leave Type', leaveBalanceTableYear: 'Year', leaveBalanceTableAvailable: 'Available', leaveBalanceTableUsed: 'Used', leaveBalanceTableRemaining: 'Remaining', leaveBalanceContactHr: 'If needed, please contact HR to confirm leave data.', durationExceedsBalance: '{label} requested duration ({requested}) exceeds remaining balance ({remaining}), cannot submit.', leaveConfirmPrompt: 'Please confirm the following leave information before submitting to OA.', oaLeaveSubmitFailed: 'OA leave submission failed, please try again later.', leaveSubmitFailedPrefix: 'Leave submission failed: {error}', 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' }, oaPopupBlocked: 'Popup blocked. Please allow popups and retry.', oaLoggingTitle: 'Logging into OA...', oaLoggingBody: 'Logging into OA, please wait...', noEmployeeId: 'Cannot login OA without employee ID.', oaPasswordRequired: 'Please enter OA password.', oaRequestMissing: 'OA request ID is missing.', devComingSoon: 'This feature is under development', previewUnavailable: 'Preview is temporarily unavailable', invalidBrowserUrl: 'Please enter a valid URL such as https://example.com or localhost:8891', enterBrowserUrl: 'Please enter a URL first', queryLeaveBalance: 'Checking your leave balance, please wait...', leaveFormIntro: 'We generated the leave form for you. Fill and submit below, or ', oaLeaveDirectLink: 'apply directly in OA', oaLeaveDirectHintKey: 'or', leaveApplicantRequired: 'Leave applicant is required.', leaveTypeRequired: 'Please select leave type.', leaveAgentRequired: 'Please select agent.', startTimeRequired: 'Please select a valid start time.', endTimeRequired: 'Please select a valid end time.', durationInvalid: 'Duration must be greater than 0 hour.', leaveResultSubmitted: 'Leave request submitted to OA. Please check:', confirmClearHistory: 'Clear all chat history? This cannot be undone.', confirmDeleteHistoryItem: 'Delete this chat history?', leaveFiller: 'Filler', createdAt: 'Created At', leaveType: 'Leave Type', selectLeaveType: 'Select leave type', leaveApplicant: 'Applicant', selectLeaveApplicant: 'Select applicant', pickLeaveApplicant: 'Pick applicant', leaveAgent: 'Agent', selectLeaveAgent: 'Select agent', pickLeaveAgent: 'Pick agent', startTime: 'Start Time', endTime: 'End Time', duration: 'Duration', isOutOfOffice: 'Out of office', isWorkInjury: 'Work injury', yes: 'Yes', no: 'No', leaveConfirmGenerated: 'Confirmation generated. You can edit and submit again.', submitting: 'Submitting...', submit: 'Submit', leaveFillerInfo: 'Filler Info', leaveApplicantInfo: 'Applicant Info', leaveInfo: 'Leave Info', notSelected: 'Not selected', leaveFillerTitle: 'Filler Title', leaveFillerDept: 'Filler Department', leaveFillerCompany: 'Filler Company', leaveApplicantTitle: 'Applicant Title', leaveApplicantDept: 'Applicant Department', leaveApplicantCompany: 'Applicant Company', leaveAgentTitle: 'Agent Title', leaveAgentDept: 'Agent Department', leaveAgentCompany: 'Agent Company', backToEdit: 'Back to edit', confirming: 'Confirming...', confirmed: 'Confirmed', confirm: 'Confirm', oaSubmitResult: 'OA submit result', oaSubmitFailed: 'OA submit failed', leaveResultPrefix: 'Leave request submitted to OA. View:', leaveResultLinkText: '[ View in OA ]', requestNo: 'Request No', submitTime: 'Submitted At', sourceDocs: 'Source Documents', attributionParts: 'Attribution Parts', selectWho: 'Select {role}', oaDataConnected: 'Connected to OA database view query.', searchByNameOrEmployeeId: 'Search by name or employee ID, press Enter', name: 'Name', employeeIdRequired: 'Employee ID is required.', actions: { copy: 'Copy', edit: 'Edit', resend: 'Resend', regenerate: 'Regenerate', copySuccess: 'Copied', copyFailed: 'Copy failed. Please allow clipboard access or try again.', copyEmpty: 'Nothing to copy' } }, profile: { title: 'Profile', personalInfo: 'Personal Information', basicInfo: 'Basic Information', department: 'Department', language: 'Language', username: 'Username', employeeId: 'Employee ID', realName: 'Real Name', email: 'Email', phoneNumber: 'Phone Number', theme: 'Theme', roleAdmin: 'Administrator', roleUser: 'User', unsavedChanges: 'You have unsaved changes', editHint: 'Switch to edit mode to update profile details', switchEditHint: 'Switch to edit mode to update profile details', directEditHint: 'You can edit your profile information directly', 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' }, feedback: { title: 'Feedback', labels: { type: 'Feedback Type', module: 'Feedback Module', content: 'Feedback Content', }, type: { featureSuggestion: 'Feature Suggestion', issueReport: 'Issue Report', experienceOptimization: 'Experience Optimization', }, module: { knowledgeBase: 'Knowledge Base', general: 'General', workflow: 'Workflow', accountPermission: 'Account & Permission', }, placeholder: { content: 'Please describe your issue or suggestion to help us improve continuously.', }, msg: { fillContent: 'Please enter feedback content', submitFailed: 'Failed to submit feedback', }, cancel: 'Cancel', submitting: 'Submitting...', submit: 'Submit', }, kbWorkspace: { header: { groupOverviewTitle: 'Knowledge Base Group Overview', workspaceTitle: 'Knowledge Base Workspace', groupOverviewSubtitle: 'Click a group card to enter that group workspace.', workspaceSubtitle: 'The data cleaning and knowledge base management module has been integrated into the platform. This is the phase-1 shell page.', }, actions: { backToOverview: 'Back to Group Overview', backToWorkspace: 'Back to Workspace', refreshGroups: 'Refresh Groups', refreshDocuments: 'Refresh Documents', }, overview: { title: 'Knowledge Base Group Overview', loadingGroups: 'Loading groups...', createGroupTitle: 'Create Knowledge Base Group', createGroupDesc: 'Use the knowledge base entry pattern. Click the button, fill the popup form, then create a new group.', createGroupButton: 'Create Knowledge Base', }, }, 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: '发生错误', close: '关闭', cancel: '取消', loading: '加载中...', refresh: '刷新', yes: '是', no: '否', deleteDialog: { defaultTitle: '您确定要删除吗?', defaultMessage: '点击“确定”按钮后,该对话框将在 1 秒后关闭', cancel: '取消', confirm: '确定' } }, scheduleRuns: { title: '排程记录', refresh: '刷新', tip: '仅展示你是 owner 或在通知名单中的记录', loading: '加载中...', empty: '暂无可见记录', viewExcel: '查看Excel', columns: { runNo: '执行单号', schedule: '排程', start: '开始', end: '结束', status: '状态', total: '处理', success: '成功', failed: '失败' }, msg: { loadFailed: '加载排程记录失败' } }, filePreview: { title: '文件预览', download: '下载文件', downloading: '下载中...', tooLarge: '文件较大,暂不支持在线预览,请直接点击上方“下载文件”获取原文件。', previewFailed: '预览失败:', msg: { downloadFailed: '下载失败: {reason}', unknownError: '未知错误' } }, kbDifySettings: { title: 'Dify 设置', subtitle: '管理知识库模块使用的 Dify 连接和默认同步参数。', loading: '正在加载设置...', save: '保存设置', saving: '保存中...', msg: { loadFailed: '加载 Dify 设置失败', saveFailed: '保存 Dify 设置失败', saved: 'Dify 设置已保存' } }, kbDifyHealth: { title: 'Dify 健康检查', subtitle: '查看知识库模块当前的 Dify 连接情况和本地同步概况。', loading: '正在检测...', reachable: '可访问', unreachable: '不可访问', notConfigured: '未配置', datasetCount: 'Dataset 数量', configured: '配置完成:', boundGroups: '已绑定分组', localSyncRecords: '本地同步记录:', syncingVersions: '同步中版本', syncedVersions: '已同步版本', pendingSyncJobs: '待同步任务', msg: { loadFailed: '加载 Dify 健康状态失败' } }, kbAdmin: { title: '知识库管理', subtitle: '第一阶段先承接分组、任务和 Dify 管理入口,后续再接入清洗链路。', toolbar: '知识库工具操作', difySettings: 'Dify 设置', healthCheck: '健康检查', goWorkspace: '前往工作台', groupsTitle: '知识库分组概览', groupsEmpty: '当前暂无分组,或知识库接口尚未联调完成。', noDescription: '暂无描述', documentCount: '{count} 文档', updatedAt: '更新时间:', jobsTitle: '任务队列占位', jobsEmpty: '暂无任务。第二阶段会在这里接入清洗、同步和重试任务。', noJobMessage: '暂无任务说明', jobMeta: '文档:{docId} · 版本:{versionId} · 进度:{progress}%', running: '执行中...', runJob: '执行任务', form: { editTitle: '编辑知识库分组', createTitle: '新建知识库分组', editDesc: '修改知识库分组名称和描述,保存后会立即刷新列表。', createDesc: '用于验证主平台里的知识库管理入口和基础接口壳。', saving: '保存中...', submitting: '提交中...', saveChanges: '保存修改', create: '创建分组', groupName: '分组名称', groupNamePlaceholder: '例如:财务制度库', groupDesc: '分组描述', groupDescPlaceholder: '描述该知识库分组的业务范围或清洗目标', cancelEdit: '取消编辑' }, deleteDialog: { title: '您确定要删除吗?', message: '确认删除知识库分组“{name}”吗?' }, msg: { loadGroupsFailed: '加载知识库分组失败', loadJobsFailed: '加载任务列表失败', nameRequired: '请输入知识库分组名称', createFailed: '创建失败', created: '知识库分组创建成功', updated: '知识库分组已更新', deleteFailed: '删除失败', deleted: '知识库分组已删除', runFailed: '任务执行失败', runDone: '任务已执行' } }, 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: '已从企业微信消息进入,已为你准备好相关上下文。', lang: { zhCN: '简体中文', zhTW: '繁體中文' }, mobileTabs: { me: '我的', history: '历史会话', applications: '应用管理' }, nav: { profile: '个人中心', admin: '管理后台', applications: '应用管理', knowledgeBase: '知识库管理', scheduleRuns: '排程记录', shippingNotice: '货代发货', feedback: '意见反馈', updates: '最近更新', backToChat: '返回聊天', logout: '退出登录' }, history: { empty: '暂无历史会话', untitled: '未命名对话' }, schedule: { title: '排程记录', refresh: '刷新', search: '查询', reset: '重置', loading: '正在加载...', empty: '暂无排程记录', download: '下载', noPendingData: '无待处理数据', filters: { name: '排程名称', namePlaceholder: '输入排程名称', start: '开始时间', end: '结束时间', status: '状态' }, columns: { name: '排程名称', runNo: '运行编号', triggerType: '触发方式', start: '开始时间', end: '结束时间', duration: '耗时', status: '状态', total: '处理笔数', success: '成功笔数', failed: '失败笔数', detail: '明细' }, trigger: { manual: '手动', test: '测试', timed: '定时' }, status: { all: '全部状态', success: '成功', partialFailed: '部分成功', failed: '失败', running: '执行中', queued: '排队中' }, msg: { downloadExcelFailed: '下载 Excel 失败' } }, shippingNotice: { title: '货代发货通知', subtitle: '只读工作台,请在 Chat 中继续处理。', refresh: '刷新', search: '查询', loading: '正在加载...', empty: '暂无发货任务', selectCase: '选择左侧任务查看详情', loadFailed: '加载失败', openChat: '在 Chat 中继续', download: '下载 Excel', lines: '发货明细', qty: '数量', events: '事件记录', filters: { status: '状态' }, fields: { status: '流程状态', match: '匹配状态', shipTo: '收货地址', freightRef: '货代单号' }, status: { all: '全部', created: '已创建', waitingInventory: '等待库存', inventoryReady: '库存就绪', matched: '已匹配', waitingUpload: '等待上传', uploaded: '已上传', uploadFailed: '上传失败' } }, profile: { msg: { loadFailed: '加载个人中心失败', saveFailed: '保存个人资料失败', saved: '个人资料已保存', changePasswordFailed: '修改密码失败' } }, msg: { casdoorNotMatchedContactAdmin: 'Casdoor 登录成功,但未匹配到本地账号,请联系管理员。', casdoorNotMatchedNeedLocalUser: 'Casdoor 登录成功,但未匹配到本地账号。请让管理员在本地用户表创建同名 username 或相同 email 的账号。', localAccountDisabled: '该本地账号已被禁用,请联系管理员启用后再登录。' } }, admin: { title: '管理控制台', subtitle: '系统配置与管理', dashboard: '仪表盘', agents: '应用管理', permissions: '用户与权限', requests: '审批申请', reports: '数据报表', save: '保存更改', add: '添加', update: '更新', cancel: '取消', close: '关闭', edit: '编辑', delete: '删除', // Sidebar & Navigation nav: { dashboard: '仪表盘', approvals: '用户审批', users: '用户管理', departments: '部门管理', agents: '应用管理', knowledgeBase: '知识库管理', announcements: '公告管理', questions: '常用问题', wecom: '企业微信', permissions: '应用权限', requests: '权限审批', reports: '数据报表', schedules: '排程管理' }, // 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: { userSelect: '选择用户', 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 schedule: { overviewTitle: '排程管理概览', workbenchTitle: '排程管理工作台', overviewSubtitle: '点击排程卡片进入排程工作台。', workbenchSubtitle: '左侧排程列表,右侧执行记录列表。', refresh: '刷新排程', stats: { total: '排程总数', enabled: '启用中', disabled: '停用中', running: '执行中' }, sectionOverview: '排程管理概览', switchByCard: '按卡片切换', addTitle: '新增排程', addHint: '点击按钮后弹窗录入排程字段。', addButton: '新增排程', emptyList: '暂无排程,请先创建。', loading: '正在加载...', enabled: '启用', disabled: '停用', scheduleNo: '编号', config: '配置', owner: '所有者', lastRun: '最近执行', nextRun: '下次执行', noSelection: '未选择排程', selectedHint: '当前选中排程 · 最近执行 {time}', runBatches: '执行批次', totalProcessed: '处理总数', totalSuccess: '成功总数', totalFailed: '失败总数', listTitle: '排程列表', recordsTitle: '{name} · 执行记录', recordsSubtitle: '下方仅展示执行记录明细。', noSelectionHint: '未选择排程,请先在左侧列表选择一个排程。', filterStart: '开始', filterEnd: '结束', query: '查询', reset: '重置', queryingRuns: '正在查询记录...', noRunRecords: '暂无执行记录。', runLogs: '执行日志', stepsCount: '共 {count} 步', viewDetail: '查看详情', resizeColumn: '拖拽调整{label}列宽', notified: '已通知', notifyError: '异常', download: '下载', log: '日志', actions: { edit: '编辑', start: '启动', pause: '暂停', run: '执行', test: '测试', delete: '删除' }, columns: { runNo: '执行单号', startedAt: '开始时间', finishedAt: '结束时间', status: '状态', totalCount: '处理', successCount: '成功', failedCount: '失败', wecomNotified: '企微通知', detail: '明细', log: '日志' }, form: { editTitle: '编辑排程', createTitle: '新增排程', name: '排程名称', namePlaceholder: '例如:RoHS 自动审核排程', owner: '排程所有者', noUsers: '暂无可用用户', selectOwner: '请选择所有者', dataSourceConfig: '数据源与执行配置', databaseDirect: '数据库直联', externalApi: '外部API', querying: '查询中...', testQuery: '测试查询', expandConfig: '展开配置', collapseConfig: '收起配置', dataSourceSection: '数据源配置', waitSeconds: '等待时间(秒)', noAgents: '暂无可用 Agent', agentDisabled: '不启用', cronTitle: 'Cron 图形化设置', cronHint: '选择执行频率后自动生成 Cron 表达式。', everyMinutes: '每隔分钟', hourly: '每小时', daily: '每天', weekly: '每周', minuteInterval: '分钟间隔', minuteOfHour: '每小时第几分钟', hour: '小时', minute: '分钟', weekday: '星期', cronPreview: 'Cron 预览', nextRun: '下次执行', notifyEnabled: '启用通知', selectNotifyUsers: '选择通知人员...', enableOnCreate: '创建后启用', cancel: '取消', saving: '保存中...', saveChanges: '保存修改', createSchedule: '创建排程' }, testRun: { title: '测试执行 — {name}', subtitle: '编辑 WHERE 条件,限制行数,快速执行并查看每步结果', close: '关闭', running: '执行中...', start: '开始测试执行', waitingHint: 'Dify 调用可能需要较长时间,请耐心等待...', total: '总处理', success: '成功', failed: '失败', skipped: '跳过', limitSummary: '限制 {limit} 条 | Dify Agent ID: {agentId}', noAgent: '无', stepLogs: '步骤日志', viewSql: '查看执行 SQL', errors: '错误信息 ({count})', queryResult: '查询结果', resultSummary: '共 {total} 条,展示 {showing} 条', viewGeneratedSql: '查看生成 SQL' }, status: { all: '全部状态', success: '成功', partialFailed: '部分成功', failed: '失败', running: '执行中', queued: '排队中' }, weekday: { mon: '周一', tue: '周二', wed: '周三', thu: '周四', fri: '周五', sat: '周六', sun: '周日' }, step: { fetchSrm: '抓取外部系统数据', callDify: '调用Dify服务', writebackSrm: '回写外部系统数据', callInternalApi: '调用内部API', preDify: 'Dify前处理' }, deleteDialogTitle: '删除排程', deleteConfirmMessage: '确认删除排程「{name}」?', msg: { testRunFailed: '测试执行失败', testQueryFailed: '测试查询失败', configRequired: 'Dify Agent、SQL 配置或外部 API 至少填写一项,否则排程执行无任何效果', headerLabelsJsonInvalid: 'header_labels JSON 格式错误,请检查', apiHeadersJsonInvalid: 'API Headers JSON 格式错误,请检查', runNowFailed: '手动执行失败', downloadExcelFailed: '下载 Excel 失败', deleteFailed: '删除排程失败' } }, 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 可能会犯错,请核实重要信息。', createNewChat: '创建新对话', shippingNoticeContinue: '请继续处理发货任务 {caseId},请先调用 get_case_status 查询当前状态并告知我下一步。', clearAll: '清空全部', clearOneRecord: '清除该记录', agents: '智能体', noOtherAgents: '暂无其他智能体', noAvailableAgents: '暂无可用智能体', collapseAgents: '收起智能体', expandAgents: '展开智能体', generalFeedback: '意见反馈', language: '语言', langZhCn: '简体中文', langEn: 'English', langZhTw: '繁體中文', langTh: 'ไทย', logout: '退出登录', welcomeTitle: '你好,我是和信AI数字人', askAnything: '问我任何事...', voiceFeature: '语音功能', collapseBrowser: '收起浏览器', openBrowser: '打开浏览器', kb: { enterprise: '企业知识库', erp: 'ERP知识库' }, browser: '浏览器', closeBrowser: '关闭浏览器', browserInputPlaceholder: '输入网址,例如 https://example.com', open: '打开', refresh: '刷新', openInNewTab: '新标签打开', browserHint1: '在这里直接打开网页,边聊天边查看内容。', browserHint2: '支持输入 `https://`、`localhost` 或内网 IP 地址。', feedbackSubmitSuccess: '反馈提交成功', noData: '暂无数据', loading: '加载中...', loadMore: '加载更多', loadAll: '加载全部', noMoreData: '没有更多数据了', loginOaSystem: '登录OA系统', employeeId: '工号', enterOaPassword: '请输入OA登录密码', confirmLogin: '确认登录', currentUser: '当前用户', dayUnit: '天', hourUnit: '小时', leaveBalanceInsufficient: '**{label}余额不足,暂无可用假期。**', leaveBalanceTableLeaveType: '假别', leaveBalanceTableYear: '年度', leaveBalanceTableAvailable: '可休', leaveBalanceTableUsed: '已休', leaveBalanceTableRemaining: '当前剩余', leaveBalanceContactHr: '如有疑问,请联系人事部门确认假期数据。', durationExceedsBalance: '{label}申请时长({requested})超出剩余额度({remaining}),无法提交。', leaveConfirmPrompt: '请确认以下请假信息,确认无误后再提交到 OA。', oaLeaveSubmitFailed: 'OA 请假提交失败,请稍后重试。', leaveSubmitFailedPrefix: '请假单提交失败:{error}', suggestions: { whatCanYouDo: '你能做什么?', helpWriteReport: '帮我写一份报告', analyzeData: '分析这份数据', creativeWriting: '创意写作' }, welcome: { title: '今天我能帮您做什么?', subtitle: '开始新对话或从历史记录中选择。' }, feedback: { selectRating: '请先选择评分', commentPlaceholder: '添加评论(可选)...', sent: '已发送' }, oaPopupBlocked: '浏览器拦截了 OA 页面,请允许弹出窗口后重试。', oaLoggingTitle: '正在登录OA系统...', oaLoggingBody: '正在登录OA系统,请稍候...', noEmployeeId: '没有工号信息无法登录OA系统!', oaPasswordRequired: '请输入OA登录密码!', oaRequestMissing: '当前未获取到 OA 单据编号,暂时无法打开单据详情。', devComingSoon: '该功能正在开发中', previewUnavailable: '当前源文件暂时无法预览', invalidBrowserUrl: '请输入有效的网址,例如 https://example.com 或 localhost:8891', enterBrowserUrl: '请先输入可打开的网址。', queryLeaveBalance: '正在查询您的假期余额,请稍候...', leaveFormIntro: '已为你生成请假申请表,请直接在下方填写并提交。或', oaLeaveDirectLink: '登录OA系统直接申请', oaLeaveDirectHintKey: '或登录OA系统直接申请', leaveApplicantRequired: '请假人不能为空。', leaveTypeRequired: '请选择假别。', leaveAgentRequired: '请选择代理人。', startTimeRequired: '请选择正确的开始时间。', endTimeRequired: '请选择正确的结束时间。', durationInvalid: '时长必须大于0小时,请检查开始时间和结束时间。', leaveResultSubmitted: '请假单已推送到 OA,具体单据请 【 登录OA系统查看提交】', confirmClearHistory: '确定要清除全部聊天历史记录吗?此操作不可恢复。', confirmDeleteHistoryItem: '确定要删除这条聊天记录吗?', leaveFiller: '填单人', createdAt: '创建时间', leaveType: '假别', selectLeaveType: '请选择假别', leaveApplicant: '请假人', selectLeaveApplicant: '请选择请假人', pickLeaveApplicant: '选择请假人', leaveAgent: '代理人', selectLeaveAgent: '请选择代理人', pickLeaveAgent: '选择代理人', startTime: '开始时间', endTime: '结束时间', duration: '时长', isOutOfOffice: '是否外出', isWorkInjury: '是否为工伤', yes: '是', no: '否', leaveConfirmGenerated: '已生成确认单,如需调整可直接修改表单后再次点击提交。', submitting: '提交中...', submit: '提交', leaveFillerInfo: '填单人信息', leaveApplicantInfo: '申请人信息', leaveInfo: '请假信息', notSelected: '未选择', leaveFillerTitle: '填单人职务', leaveFillerDept: '填单人部门', leaveFillerCompany: '填单人公司', leaveApplicantTitle: '申请人职务', leaveApplicantDept: '申请人部门', leaveApplicantCompany: '申请人公司', leaveAgentTitle: '代理人职务', leaveAgentDept: '代理人部门', leaveAgentCompany: '代理人公司', backToEdit: '返回修改', confirming: '确认中...', confirmed: '已确认', confirm: '确认', oaSubmitResult: 'OA 提交结果', oaSubmitFailed: 'OA 提交失败', leaveResultPrefix: '请假单已推送到 OA,具体单据请', leaveResultLinkText: '【 登录OA系统查看提交】', requestNo: '单据编号', submitTime: '提交时间', sourceDocs: '源文档', attributionParts: '生成内容归属部分', selectWho: '选择{role}', oaDataConnected: '已接入 OA 数据库视图查询。', searchByNameOrEmployeeId: '输入姓名或工号搜索,按回车键查询', name: '姓名', employeeIdRequired: '工号不能为空。', actions: { copy: '复制', edit: '编辑', resend: '重新发送', regenerate: '重新生成', copySuccess: '已复制', copyFailed: '复制失败,请允许剪贴板权限后重试', copyEmpty: '没有可复制的内容' } }, profile: { title: '个人资料', personalInfo: '基本信息', basicInfo: '基本信息', department: '部门', language: '语言', username: '用户名', employeeId: '工号', realName: '姓名', email: '邮箱', phoneNumber: '手机号', theme: '主题', roleAdmin: '管理员', roleUser: '普通用户', unsavedChanges: '您有未保存的更改', editHint: '切换到编辑模式以更新个人资料', switchEditHint: '切换到编辑模式以更新个人资料', directEditHint: '可直接编辑并保存个人资料', security: '安全设置', preferences: '偏好设置', edit: '编辑', cancel: '取消', saveSuccess: '个人资料保存成功', passwordChanged: '密码修改成功', passwordMismatch: '两次输入的密码不一致', currentPassword: '当前密码', newPassword: '新密码', confirmPassword: '确认密码', changePassword: '修改密码' }, feedback: { title: '意见反馈', labels: { type: '反馈类型', module: '反馈模块', content: '反馈内容', }, type: { featureSuggestion: '功能建议', issueReport: '问题反馈', experienceOptimization: '体验优化', }, module: { knowledgeBase: '知识库', general: '通用', workflow: '流程', accountPermission: '账号权限', }, placeholder: { content: '请描述你的问题或建议,帮助我们持续优化。', }, msg: { fillContent: '请填写反馈内容', submitFailed: '提交反馈失败', }, cancel: '取消', submitting: '提交中...', submit: '提交', }, kbWorkspace: { header: { groupOverviewTitle: '知识库分组概览', workspaceTitle: '知识库工作台', groupOverviewSubtitle: '点击分组卡片进入该分组工作台。', workspaceSubtitle: '数据清洗与知识库管理模块已接入主平台,当前为第一阶段页面壳。', }, actions: { backToOverview: '返回分组概览', backToWorkspace: '返回工作台', refreshGroups: '刷新分组', refreshDocuments: '刷新文档', }, overview: { title: '知识库分组概览', loadingGroups: '正在加载分组...', createGroupTitle: '新增知识库分组', createGroupDesc: '参考知识库入口,点击按钮弹窗输入后创建新分组。', createGroupButton: '新增知识库', }, }, 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: '發生錯誤', close: '關閉', cancel: '取消', loading: '載入中...', refresh: '刷新', yes: '是', no: '否', deleteDialog: { defaultTitle: '您確定要刪除嗎?', defaultMessage: '點擊「確定」按鈕後,此對話框將在 1 秒後關閉', cancel: '取消', confirm: '確定' } }, scheduleRuns: { title: '排程記錄', refresh: '刷新', tip: '僅展示你是 owner 或在通知名單中的記錄', loading: '載入中...', empty: '暫無可見記錄', viewExcel: '查看Excel', columns: { runNo: '執行單號', schedule: '排程', start: '開始', end: '結束', status: '狀態', total: '處理', success: '成功', failed: '失敗' }, msg: { loadFailed: '載入排程記錄失敗' } }, filePreview: { title: '檔案預覽', download: '下載檔案', downloading: '下載中...', tooLarge: '檔案較大,暫不支援線上預覽,請直接點擊上方「下載檔案」取得原始檔案。', previewFailed: '預覽失敗:', msg: { downloadFailed: '下載失敗: {reason}', unknownError: '未知錯誤' } }, kbDifySettings: { title: 'Dify 設定', subtitle: '管理知識庫模組使用的 Dify 連線和預設同步參數。', loading: '正在載入設定...', save: '儲存設定', saving: '儲存中...', msg: { loadFailed: '載入 Dify 設定失敗', saveFailed: '儲存 Dify 設定失敗', saved: 'Dify 設定已儲存' } }, kbDifyHealth: { title: 'Dify 健康檢查', subtitle: '查看知識庫模組目前的 Dify 連線情況和本地同步概況。', loading: '正在檢測...', reachable: '可訪問', unreachable: '不可訪問', notConfigured: '未配置', datasetCount: 'Dataset 數量', configured: '配置完成:', boundGroups: '已綁定分組', localSyncRecords: '本地同步記錄:', syncingVersions: '同步中版本', syncedVersions: '已同步版本', pendingSyncJobs: '待同步任務', msg: { loadFailed: '載入 Dify 健康狀態失敗' } }, kbAdmin: { title: '知識庫管理', subtitle: '第一階段先承接分組、任務和 Dify 管理入口,後續再接入清洗鏈路。', toolbar: '知識庫工具操作', difySettings: 'Dify 設定', healthCheck: '健康檢查', goWorkspace: '前往工作台', groupsTitle: '知識庫分組概覽', groupsEmpty: '當前暫無分組,或知識庫介面尚未聯調完成。', noDescription: '暫無描述', documentCount: '{count} 文件', updatedAt: '更新時間:', jobsTitle: '任務隊列占位', jobsEmpty: '暫無任務。第二階段會在這裡接入清洗、同步和重試任務。', noJobMessage: '暫無任務說明', jobMeta: '文檔:{docId} · 版本:{versionId} · 進度:{progress}%', running: '執行中...', runJob: '執行任務', form: { editTitle: '編輯知識庫分組', createTitle: '新建知識庫分組', editDesc: '修改知識庫分組名稱和描述,儲存後會立即刷新列表。', createDesc: '用於驗證主平台裡的知識庫管理入口和基礎介面殼。', saving: '儲存中...', submitting: '提交中...', saveChanges: '儲存修改', create: '建立分組', groupName: '分組名稱', groupNamePlaceholder: '例如:財務制度庫', groupDesc: '分組描述', groupDescPlaceholder: '描述該知識庫分組的業務範圍或清洗目標', cancelEdit: '取消編輯' }, deleteDialog: { title: '您確定要刪除嗎?', message: '確認刪除知識庫分組「{name}」嗎?' }, msg: { loadGroupsFailed: '載入知識庫分組失敗', loadJobsFailed: '載入任務列表失敗', nameRequired: '請輸入知識庫分組名稱', createFailed: '建立失敗', created: '知識庫分組建立成功', updated: '知識庫分組已更新', deleteFailed: '刪除失敗', deleted: '知識庫分組已刪除', runFailed: '任務執行失敗', runDone: '任務已執行' } }, 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: '已從企業微信消息進入,已為你準備好相關上下文。', lang: { zhCN: '簡體中文', zhTW: '繁體中文' }, mobileTabs: { me: '我的', history: '歷史會話', applications: '應用管理' }, nav: { profile: '個人中心', admin: '管理後台', applications: '應用管理', knowledgeBase: '知識庫管理', scheduleRuns: '排程記錄', feedback: '意見反饋', updates: '最近更新', backToChat: '返回聊天', logout: '退出登錄' }, history: { empty: '暫無歷史會話', untitled: '未命名對話' }, schedule: { title: '排程記錄', refresh: '刷新', search: '查詢', reset: '重置', loading: '正在載入...', empty: '暫無排程記錄', download: '下載', noPendingData: '無待處理數據', filters: { name: '排程名稱', namePlaceholder: '輸入排程名稱', start: '開始時間', end: '結束時間', status: '狀態' }, columns: { name: '排程名稱', runNo: '運行編號', triggerType: '觸發方式', start: '開始時間', end: '結束時間', duration: '耗時', status: '狀態', total: '處理筆數', success: '成功筆數', failed: '失敗筆數', detail: '明細' }, trigger: { manual: '手動', test: '測試', timed: '定時' }, status: { all: '全部狀態', success: '成功', partialFailed: '部分成功', failed: '失敗', running: '執行中', queued: '排隊中' }, msg: { downloadExcelFailed: '下載 Excel 失敗' } }, profile: { msg: { loadFailed: '載入個人中心失敗', saveFailed: '保存個人資料失敗', saved: '個人資料已保存', changePasswordFailed: '修改密碼失敗' } }, msg: { casdoorNotMatchedContactAdmin: 'Casdoor 登錄成功,但未匹配到本地賬號,請聯繫管理員。', casdoorNotMatchedNeedLocalUser: 'Casdoor 登錄成功,但未匹配到本地賬號。請讓管理員在本地用戶表建立同名 username 或相同 email 的賬號。', localAccountDisabled: '該本地賬號已被禁用,請聯繫管理員啟用後再登錄。' } }, admin: { title: '管理控制台', subtitle: '系統配置與管理', dashboard: '儀表盤', agents: '應用管理', permissions: '用戶與權限', requests: '審批申請', reports: '數據報表', save: '保存更改', add: '添加', update: '更新', cancel: '取消', close: '關閉', edit: '編輯', delete: '刪除', // Sidebar & Navigation nav: { dashboard: '儀表盤', approvals: '用戶審批', users: '用戶管理', departments: '部門管理', agents: '應用管理', knowledgeBase: '知識庫管理', announcements: '公告管理', questions: '常用問題', wecom: '企業微信', permissions: '應用權限', requests: '權限審批', reports: '數據報表', schedules: '排程管理' }, // 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: { userSelect: '選擇用戶', 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 schedule: { status: { all: '全部狀態', success: '成功', partialFailed: '部分成功', failed: '失敗', running: '執行中', queued: '排隊中' }, weekday: { mon: '週一', tue: '週二', wed: '週三', thu: '週四', fri: '週五', sat: '週六', sun: '週日' }, step: { fetchSrm: '抓取外部系統資料', callDify: '調用Dify服務', writebackSrm: '回寫外部系統資料', callInternalApi: '調用內部API', preDify: 'Dify前處理' }, deleteDialogTitle: '刪除排程', deleteConfirmMessage: '確認刪除排程「{name}」?', msg: { testRunFailed: '測試執行失敗', configRequired: 'Dify Agent、SQL 配置或外部 API 至少填寫一項,否則排程執行無任何效果', headerLabelsJsonInvalid: 'header_labels JSON 格式錯誤,請檢查', apiHeadersJsonInvalid: 'API Headers JSON 格式錯誤,請檢查', runNowFailed: '手動執行失敗', downloadExcelFailed: '下載 Excel 失敗', deleteFailed: '刪除排程失敗' } }, 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 可能會犯錯,請核實重要信息。', createNewChat: '建立新對話', clearAll: '清空全部', clearOneRecord: '清除此記錄', agents: '智能體', noOtherAgents: '暫無其他智能體', noAvailableAgents: '暫無可用智能體', collapseAgents: '收起智能體', expandAgents: '展開智能體', generalFeedback: '意見反饋', language: '語言', langZhCn: '簡體中文', langEn: 'English', langZhTw: '繁體中文', langTh: 'ไทย', logout: '退出登入', welcomeTitle: '你好,我是和信AI數字人', askAnything: '問我任何事...', voiceFeature: '語音功能', collapseBrowser: '收起瀏覽器', openBrowser: '打開瀏覽器', kb: { enterprise: '企業知識庫', erp: 'ERP知識庫' }, browser: '瀏覽器', closeBrowser: '關閉瀏覽器', browserInputPlaceholder: '輸入網址,例如 https://example.com', open: '打開', refresh: '刷新', openInNewTab: '新分頁打開', browserHint1: '在這裡直接打開網頁,邊聊天邊查看內容。', browserHint2: '支持輸入 `https://`、`localhost` 或內網 IP 地址。', feedbackSubmitSuccess: '反饋提交成功', noData: '暫無資料', loading: '載入中...', loadMore: '載入更多', loadAll: '載入全部', noMoreData: '沒有更多資料了', loginOaSystem: '登入OA系統', employeeId: '工號', enterOaPassword: '請輸入OA登入密碼', confirmLogin: '確認登入', currentUser: '目前使用者', dayUnit: '天', hourUnit: '小時', leaveBalanceInsufficient: '**{label}餘額不足,暫無可用假期。**', leaveBalanceTableLeaveType: '假別', leaveBalanceTableYear: '年度', leaveBalanceTableAvailable: '可休', leaveBalanceTableUsed: '已休', leaveBalanceTableRemaining: '目前剩餘', leaveBalanceContactHr: '如有疑問,請聯繫人事部門確認假期資料。', durationExceedsBalance: '{label}申請時長({requested})超出剩餘額度({remaining}),無法提交。', leaveConfirmPrompt: '請確認以下請假資訊,確認無誤後再提交到 OA。', oaLeaveSubmitFailed: 'OA 請假提交失敗,請稍後重試。', leaveSubmitFailedPrefix: '請假單提交失敗:{error}', suggestions: { whatCanYouDo: '你能做什麼?', helpWriteReport: '幫我寫一份報告', analyzeData: '分析這份數據', creativeWriting: '創意寫作' }, welcome: { title: '今天我能幫您做什麼?', subtitle: '開始新對話或從歷史記錄中選擇。' }, feedback: { selectRating: '請先選擇評分', commentPlaceholder: '添加評論(可選)...', sent: '已發送' }, oaPopupBlocked: '瀏覽器攔截了 OA 頁面,請允許彈出視窗後重試。', oaLoggingTitle: '正在登入OA系統...', oaLoggingBody: '正在登入OA系統,請稍候...', noEmployeeId: '沒有工號資訊無法登入OA系統!', oaPasswordRequired: '請輸入OA登入密碼!', oaRequestMissing: '目前未取得 OA 單據編號,暫時無法開啟單據詳情。', devComingSoon: '該功能正在開發中', previewUnavailable: '目前源文件暫時無法預覽', invalidBrowserUrl: '請輸入有效網址,例如 https://example.com 或 localhost:8891', enterBrowserUrl: '請先輸入可開啟的網址。', queryLeaveBalance: '正在查詢您的假期餘額,請稍候...', leaveFormIntro: '已為你生成請假申請表,請直接在下方填寫並提交。或', oaLeaveDirectLink: '登入OA系統直接申請', oaLeaveDirectHintKey: '或登入OA系統直接申請', leaveApplicantRequired: '請假人不能為空。', leaveTypeRequired: '請選擇假別。', leaveAgentRequired: '請選擇代理人。', startTimeRequired: '請選擇正確的開始時間。', endTimeRequired: '請選擇正確的結束時間。', durationInvalid: '時長必須大於0小時,請檢查開始與結束時間。', leaveResultSubmitted: '請假單已推送到 OA,具體單據請 【 登入OA系統查看提交】', confirmClearHistory: '確定要清除全部聊天歷史記錄嗎?此操作不可恢復。', confirmDeleteHistoryItem: '確定要刪除這條聊天記錄嗎?', leaveFiller: '填單人', createdAt: '建立時間', leaveType: '假別', selectLeaveType: '請選擇假別', leaveApplicant: '請假人', selectLeaveApplicant: '請選擇請假人', pickLeaveApplicant: '選擇請假人', leaveAgent: '代理人', selectLeaveAgent: '請選擇代理人', pickLeaveAgent: '選擇代理人', startTime: '開始時間', endTime: '結束時間', duration: '時長', isOutOfOffice: '是否外出', isWorkInjury: '是否為工傷', yes: '是', no: '否', leaveConfirmGenerated: '已生成確認單,如需調整可直接修改表單後再次點擊提交。', submitting: '提交中...', submit: '提交', leaveFillerInfo: '填單人資訊', leaveApplicantInfo: '申請人資訊', leaveInfo: '請假資訊', notSelected: '未選擇', leaveFillerTitle: '填單人職務', leaveFillerDept: '填單人部門', leaveFillerCompany: '填單人公司', leaveApplicantTitle: '申請人職務', leaveApplicantDept: '申請人部門', leaveApplicantCompany: '申請人公司', leaveAgentTitle: '代理人職務', leaveAgentDept: '代理人部門', leaveAgentCompany: '代理人公司', backToEdit: '返回修改', confirming: '確認中...', confirmed: '已確認', confirm: '確認', oaSubmitResult: 'OA 提交結果', oaSubmitFailed: 'OA 提交失敗', leaveResultPrefix: '請假單已推送到 OA,具體單據請', leaveResultLinkText: '【 登入OA系統查看提交】', requestNo: '單據編號', submitTime: '提交時間', sourceDocs: '源文件', attributionParts: '生成內容歸屬部分', selectWho: '選擇{role}', oaDataConnected: '已接入 OA 資料庫視圖查詢。', searchByNameOrEmployeeId: '輸入姓名或工號搜尋,按 Enter 查詢', name: '姓名', employeeIdRequired: '工號不能為空。', actions: { copy: '複製', edit: '編輯', resend: '重新發送', regenerate: '重新生成', copySuccess: '已複製', copyFailed: '複製失敗,請允許剪貼簿權限後重試', copyEmpty: '沒有可複製的內容' } }, profile: { title: '個人資料', personalInfo: '基本信息', basicInfo: '基本資訊', department: '部門', language: '語言', username: '用戶名', employeeId: '工號', realName: '姓名', email: '郵箱', phoneNumber: '手機號', theme: '主題', roleAdmin: '管理員', roleUser: '用戶', unsavedChanges: '您有尚未保存的變更', editHint: '切換到編輯模式以更新個人資料', switchEditHint: '切換到編輯模式以更新個人資料', directEditHint: '可直接編輯並保存個人資料', security: '安全設置', preferences: '偏好設置', edit: '編輯', cancel: '取消', saveSuccess: '個人資料保存成功', passwordChanged: '密碼修改成功', passwordMismatch: '兩次輸入的密碼不一致', currentPassword: '當前密碼', newPassword: '新密碼', confirmPassword: '確認密碼', changePassword: '修改密碼' }, feedback: { title: '意見反饋', labels: { type: '反饋類型', module: '反饋模塊', content: '反饋內容', }, type: { featureSuggestion: '功能建議', issueReport: '問題反饋', experienceOptimization: '體驗優化', }, module: { knowledgeBase: '知識庫', general: '通用', workflow: '流程', accountPermission: '賬號權限', }, placeholder: { content: '請描述你的問題或建議,幫助我們持續優化。', }, msg: { fillContent: '請填寫反饋內容', submitFailed: '提交反饋失敗', }, cancel: '取消', submitting: '提交中...', submit: '提交', }, kbWorkspace: { header: { groupOverviewTitle: '知識庫分組概覽', workspaceTitle: '知識庫工作台', groupOverviewSubtitle: '點擊分組卡片進入該分組工作台。', workspaceSubtitle: '資料清洗與知識庫管理模塊已接入主平台,當前為第一階段頁面殼。', }, actions: { backToOverview: '返回分組概覽', backToWorkspace: '返回工作台', refreshGroups: '刷新分組', refreshDocuments: '刷新文檔', }, overview: { title: '知識庫分組概覽', loadingGroups: '正在加載分組...', createGroupTitle: '新增知識庫分組', createGroupDesc: '參考知識庫入口,點擊按鈕彈窗輸入後創建新分組。', createGroupButton: '新增知識庫', }, }, 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: 'แพลตฟอร์มแอปพลิเคชัน AI Agent', subtitle: 'ในโลกของ AI เราหวังว่าคุณจะทำงานอย่างมีความสุข และใช้ชีวิตอย่างสนุกสนาน' }, agent: { role: 'ผู้ช่วย AI' } }, register: { title: 'ลงทะเบียนบัญชีใหม่', username: 'ชื่อผู้ใช้', password: 'รหัสผ่าน', email: 'อีเมล', cancel: 'ยกเลิก', submit: 'ลงทะเบียน', success: 'ส่งคำขอลงทะเบียนแล้ว โปรดรอการอนุมัติ', failed: 'การลงทะเบียนล้มเหลว', inputError: 'กรุณากรอกชื่อผู้ใช้และรหัสผ่าน', requestFailed: 'คำขอล้มเหลว' }, common: { errorOccurred: 'เกิดข้อผิดพลาด', close: 'ปิด', cancel: 'ยกเลิก', loading: 'กำลังโหลด...', refresh: 'รีเฟรช', yes: 'ใช่', no: 'ไม่', deleteDialog: { defaultTitle: 'คุณแน่ใจหรือไม่ว่าต้องการลบ?', defaultMessage: 'เมื่อกดปุ่มตกลง กล่องโต้ตอบนี้จะปิดหลังจาก 1 วินาที', cancel: 'ยกเลิก', confirm: 'ตกลง' } }, scheduleRuns: { title: 'บันทึกการตั้งเวลา', refresh: 'รีเฟรช', tip: 'แสดงเฉพาะรายการที่คุณเป็น owner หรืออยู่ในรายชื่อแจ้งเตือน', loading: 'กำลังโหลด...', empty: 'ยังไม่มีรายการที่มองเห็นได้', viewExcel: 'ดู Excel', columns: { runNo: 'เลขรัน', schedule: 'ตารางเวลา', start: 'เริ่ม', end: 'สิ้นสุด', status: 'สถานะ', total: 'ประมวลผล', success: 'สำเร็จ', failed: 'ล้มเหลว' }, msg: { loadFailed: 'โหลดบันทึกการตั้งเวลาล้มเหลว' } }, filePreview: { title: 'พรีวิวไฟล์', download: 'ดาวน์โหลดไฟล์', downloading: 'กำลังดาวน์โหลด...', tooLarge: 'ไฟล์มีขนาดใหญ่เกินไป ไม่รองรับการพรีวิวออนไลน์ กรุณาคลิก \"ดาวน์โหลดไฟล์\" ด้านบนเพื่อรับไฟล์ต้นฉบับ', previewFailed: 'พรีวิวล้มเหลว: ', msg: { downloadFailed: 'ดาวน์โหลดล้มเหลว: {reason}', unknownError: 'ข้อผิดพลาดที่ไม่ทราบสาเหตุ' } }, kbDifySettings: { title: 'ตั้งค่า Dify', subtitle: 'จัดการการเชื่อมต่อ Dify และค่าซิงค์เริ่มต้นของโมดูลคลังความรู้', loading: 'กำลังโหลดการตั้งค่า...', save: 'บันทึกการตั้งค่า', saving: 'กำลังบันทึก...', msg: { loadFailed: 'โหลดการตั้งค่า Dify ล้มเหลว', saveFailed: 'บันทึกการตั้งค่า Dify ล้มเหลว', saved: 'บันทึกการตั้งค่า Dify แล้ว' } }, kbDifyHealth: { title: 'ตรวจสุขภาพ Dify', subtitle: 'ดูสถานะการเชื่อมต่อ Dify และภาพรวมการซิงค์ภายในของโมดูลคลังความรู้', loading: 'กำลังตรวจสอบ...', reachable: 'เข้าถึงได้', unreachable: 'เข้าถึงไม่ได้', notConfigured: 'ยังไม่ตั้งค่า', datasetCount: 'จำนวน Dataset', configured: 'ตั้งค่าแล้ว: ', boundGroups: 'กลุ่มที่ผูกแล้ว', localSyncRecords: 'บันทึกซิงค์ภายใน: ', syncingVersions: 'เวอร์ชันที่กำลังซิงค์', syncedVersions: 'เวอร์ชันที่ซิงค์แล้ว', pendingSyncJobs: 'งานซิงค์ที่รออยู่', msg: { loadFailed: 'โหลดสถานะสุขภาพ Dify ล้มเหลว' } }, kbAdmin: { title: 'จัดการคลังความรู้', subtitle: 'ระยะแรกครอบคลุมการจัดการกลุ่ม งาน และทางเข้า Dify ก่อน จากนั้นค่อยต่อสายงานทำความสะอาด', toolbar: 'เครื่องมือคลังความรู้', difySettings: 'ตั้งค่า Dify', healthCheck: 'ตรวจสุขภาพ', goWorkspace: 'ไปยังเวิร์กสเปซ', groupsTitle: 'ภาพรวมกลุ่มคลังความรู้', groupsEmpty: 'ยังไม่มีกลุ่ม หรือ API คลังความรู้ยังไม่พร้อม', noDescription: 'ไม่มีคำอธิบาย', documentCount: '{count} เอกสาร', updatedAt: 'อัปเดตเมื่อ: ', jobsTitle: 'พื้นที่งานคิว', jobsEmpty: 'ยังไม่มีงาน ระยะถัดไปจะเชื่อมงานทำความสะอาด ซิงค์ และลองใหม่', noJobMessage: 'ไม่มีคำอธิบายงาน', jobMeta: 'เอกสาร: {docId} · เวอร์ชัน: {versionId} · ความคืบหน้า: {progress}%', running: 'กำลังรัน...', runJob: 'รันงาน', form: { editTitle: 'แก้ไขกลุ่มคลังความรู้', createTitle: 'สร้างกลุ่มคลังความรู้', editDesc: 'แก้ไขชื่อและคำอธิบายกลุ่ม รายการจะรีเฟรชทันทีหลังบันทึก', createDesc: 'ใช้ตรวจสอบทางเข้าจัดการคลังความรู้และโครง API พื้นฐานในแพลตฟอร์มหลัก', saving: 'กำลังบันทึก...', submitting: 'กำลังส่ง...', saveChanges: 'บันทึกการแก้ไข', create: 'สร้างกลุ่ม', groupName: 'ชื่อกลุ่ม', groupNamePlaceholder: 'เช่น: คลังนโยบายการเงิน', groupDesc: 'คำอธิบายกลุ่ม', groupDescPlaceholder: 'อธิบายขอบเขตงานหรือเป้าหมายการทำความสะอาดของกลุ่มนี้', cancelEdit: 'ยกเลิกการแก้ไข' }, deleteDialog: { title: 'คุณแน่ใจหรือไม่ว่าต้องการลบ?', message: 'ยืนยันลบกลุ่มคลังความรู้ \"{name}\" หรือไม่?' }, msg: { loadGroupsFailed: 'โหลดกลุ่มคลังความรู้ล้มเหลว', loadJobsFailed: 'โหลดรายการงานล้มเหลว', nameRequired: 'กรุณากรอกชื่อกลุ่มคลังความรู้', createFailed: 'สร้างไม่สำเร็จ', created: 'สร้างกลุ่มคลังความรู้สำเร็จ', updated: 'อัปเดตกลุ่มคลังความรู้แล้ว', deleteFailed: 'ลบไม่สำเร็จ', deleted: 'ลบกลุ่มคลังความรู้แล้ว', runFailed: 'รันงานล้มเหลว', runDone: 'รันงานแล้ว' } }, 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: 'การจัดการตัวแทน', knowledgeBase: 'การจัดการคลังความรู้', announcements: 'การจัดการประกาศ', questions: 'คำถามทั่วไป', wecom: 'WeCom', permissions: 'สิทธิ์แอปพลิเคชัน', requests: 'คำขอสิทธิ์', reports: 'รายงานข้อมูล', schedules: 'Schedule Management' }, // 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: { userSelect: 'เลือกผู้ใช้', 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 schedule: { status: { all: 'ทุกสถานะ', success: 'สำเร็จ', partialFailed: 'สำเร็จบางส่วน', failed: 'ล้มเหลว', running: 'กำลังทำงาน', queued: 'อยู่ในคิว' }, weekday: { mon: 'จันทร์', tue: 'อังคาร', wed: 'พุธ', thu: 'พฤหัสบดี', fri: 'ศุกร์', sat: 'เสาร์', sun: 'อาทิตย์' }, step: { fetchSrm: 'ดึงข้อมูลจากระบบภายนอก', callDify: 'เรียกใช้บริการ Dify', writebackSrm: 'เขียนข้อมูลกลับระบบภายนอก', callInternalApi: 'เรียกใช้ API ภายใน', preDify: 'ประมวลผลก่อน Dify' }, deleteDialogTitle: 'ลบตารางเวลา', deleteConfirmMessage: 'ยืนยันการลบตารางเวลา \"{name}\"?', msg: { testRunFailed: 'ทดสอบการทำงานล้มเหลว', configRequired: 'ต้องกรอกอย่างน้อยหนึ่งรายการใน Dify Agent, SQL config หรือ external API', headerLabelsJsonInvalid: 'รูปแบบ JSON ของ header_labels ไม่ถูกต้อง', apiHeadersJsonInvalid: 'รูปแบบ JSON ของ API Headers ไม่ถูกต้อง', runNowFailed: 'การรันด้วยตนเองล้มเหลว', downloadExcelFailed: 'ดาวน์โหลด Excel ล้มเหลว', deleteFailed: 'ลบตารางเวลาล้มเหลว' } }, 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 อาจทำผิดพลาดได้ โปรดตรวจสอบข้อมูลสำคัญ', createNewChat: 'แชทใหม่', clearAll: 'ล้างทั้งหมด', clearOneRecord: 'ลบรายการนี้', agents: 'ตัวแทน', noOtherAgents: 'ไม่มีตัวแทนอื่น', noAvailableAgents: 'ไม่มีตัวแทนที่ใช้ได้', collapseAgents: 'ย่อตัวแทน', expandAgents: 'ขยายตัวแทน', generalFeedback: 'ข้อเสนอแนะ', language: 'ภาษา', langZhCn: '简体中文', langEn: 'English', langZhTw: '繁體中文', langTh: 'ไทย', logout: 'ออกจากระบบ', welcomeTitle: 'สวัสดี ฉันคือ AI Digital Human ของ Hexin', askAnything: 'ถามฉันได้ทุกเรื่อง...', voiceFeature: 'ฟีเจอร์เสียง', collapseBrowser: 'ย่อเบราว์เซอร์', openBrowser: 'เปิดเบราว์เซอร์', kb: { enterprise: 'คลังความรู้ขององค์กร', erp: 'คลังความรู้ ERP' }, browser: 'เบราว์เซอร์', closeBrowser: 'ปิดเบราว์เซอร์', browserInputPlaceholder: 'ใส่ URL เช่น https://example.com', open: 'เปิด', refresh: 'รีเฟรช', openInNewTab: 'เปิดในแท็บใหม่', browserHint1: 'เปิดเว็บได้ที่นี่พร้อมคุยไปด้วย', browserHint2: 'รองรับ https://, localhost และ IP ภายในเครือข่าย', feedbackSubmitSuccess: 'ส่งข้อเสนอแนะสำเร็จ', noData: 'ไม่มีข้อมูล', loading: 'กำลังโหลด...', loadMore: 'โหลดเพิ่ม', loadAll: 'โหลดทั้งหมด', noMoreData: 'ไม่มีข้อมูลเพิ่มเติมแล้ว', loginOaSystem: 'เข้าสู่ระบบ OA', employeeId: 'รหัสพนักงาน', enterOaPassword: 'กรอกรหัสผ่าน OA', confirmLogin: 'ยืนยันการเข้าสู่ระบบ', currentUser: 'ผู้ใช้ปัจจุบัน', dayUnit: 'วัน', hourUnit: 'ชั่วโมง', leaveBalanceInsufficient: '**ยอด{label}ไม่เพียงพอ**', leaveBalanceTableLeaveType: 'ประเภทลา', leaveBalanceTableYear: 'ปี', leaveBalanceTableAvailable: 'คงเหลือที่ใช้ได้', leaveBalanceTableUsed: 'ใช้ไปแล้ว', leaveBalanceTableRemaining: 'คงเหลือปัจจุบัน', leaveBalanceContactHr: 'หากมีข้อสงสัย โปรดติดต่อฝ่ายบุคคลเพื่อตรวจสอบข้อมูลวันลา', durationExceedsBalance: '{label}ระยะเวลาที่ขอ({requested})เกินยอดคงเหลือ({remaining}) ไม่สามารถส่งได้', leaveConfirmPrompt: 'โปรดยืนยันข้อมูลการลาพนักงานก่อนส่งไปยัง OA', oaLeaveSubmitFailed: 'ส่งคำขอลา OA ไม่สำเร็จ กรุณาลองใหม่อีกครั้ง', leaveSubmitFailedPrefix: 'ส่งใบลาล้มเหลว: {error}', suggestions: { whatCanYouDo: 'คุณทำอะไรได้บ้าง?', helpWriteReport: 'ช่วยฉันเขียนรายงาน', analyzeData: 'วิเคราะห์ข้อมูลนี้', creativeWriting: 'การเขียนเชิงสร้างสรรค์' }, welcome: { title: 'วันนี้ให้ฉันช่วยอะไรดี?', subtitle: 'เริ่มการสนทนาใหม่หรือเลือกจากประวัติ' }, feedback: { selectRating: 'กรุณาเลือกคะแนนก่อน', commentPlaceholder: 'เพิ่มความคิดเห็น (ไม่บังคับ)...', sent: 'ส่งแล้ว' }, oaPopupBlocked: 'เบราว์เซอร์บล็อกหน้าต่าง OA กรุณาอนุญาตป๊อปอัปแล้วลองใหม่', oaLoggingTitle: 'กำลังเข้าสู่ระบบ OA...', oaLoggingBody: 'กำลังเข้าสู่ระบบ OA โปรดรอสักครู่...', noEmployeeId: 'ไม่มีรหัสพนักงาน ไม่สามารถเข้าสู่ OA ได้', oaPasswordRequired: 'กรุณากรอกรหัสผ่าน OA', oaRequestMissing: 'ยังไม่ได้รับเลขเอกสาร OA จึงไม่สามารถเปิดรายละเอียดได้', devComingSoon: 'ฟีเจอร์นี้กำลังพัฒนา', previewUnavailable: 'ยังไม่สามารถพรีวิวไฟล์ต้นทางได้ชั่วคราว', invalidBrowserUrl: 'กรุณาใส่ URL ที่ถูกต้อง เช่น https://example.com หรือ localhost:8891', enterBrowserUrl: 'กรุณาใส่ URL ก่อน', queryLeaveBalance: 'กำลังตรวจสอบยอดสิทธิ์ลาของคุณ โปรดรอสักครู่...', leaveFormIntro: 'ระบบได้สร้างแบบฟอร์มลางานให้แล้ว กรุณากรอกและส่งด้านล่าง หรือ', oaLeaveDirectLink: 'ยื่นคำขอโดยตรงใน OA', oaLeaveDirectHintKey: 'หรือยื่นคำขอโดยตรงใน OA', leaveApplicantRequired: 'ผู้ขอลาห้ามว่าง', leaveTypeRequired: 'กรุณาเลือกประเภทการลา', leaveAgentRequired: 'กรุณาเลือกผู้แทน', startTimeRequired: 'กรุณาเลือกเวลาเริ่มต้นที่ถูกต้อง', endTimeRequired: 'กรุณาเลือกเวลาสิ้นสุดที่ถูกต้อง', durationInvalid: 'ระยะเวลาต้องมากกว่า 0 ชั่วโมง', leaveResultSubmitted: 'ส่งใบลางานไปยัง OA แล้ว กรุณาตรวจสอบที่ 【 ดูการส่งใน OA 】', confirmClearHistory: 'ยืนยันล้างประวัติแชททั้งหมด? การกระทำนี้ย้อนกลับไม่ได้', confirmDeleteHistoryItem: 'ยืนยันลบประวัติแชทรายการนี้?', leaveFiller: 'ผู้กรอก', createdAt: 'เวลาสร้าง', leaveType: 'ประเภทการลา', selectLeaveType: 'กรุณาเลือกประเภทการลา', leaveApplicant: 'ผู้ขอลา', selectLeaveApplicant: 'กรุณาเลือกผู้ขอลา', pickLeaveApplicant: 'เลือกผู้ขอลา', leaveAgent: 'ผู้แทน', selectLeaveAgent: 'กรุณาเลือกผู้แทน', pickLeaveAgent: 'เลือกผู้แทน', startTime: 'เวลาเริ่มต้น', endTime: 'เวลาสิ้นสุด', duration: 'ระยะเวลา', isOutOfOffice: 'ออกนอกสถานที่หรือไม่', isWorkInjury: 'เป็นอุบัติเหตุจากงานหรือไม่', yes: 'ใช่', no: 'ไม่', leaveConfirmGenerated: 'สร้างใบยืนยันแล้ว หากต้องการแก้ไขให้แก้ฟอร์มแล้วส่งอีกครั้ง', submitting: 'กำลังส่ง...', submit: 'ส่ง', leaveFillerInfo: 'ข้อมูลผู้กรอก', leaveApplicantInfo: 'ข้อมูลผู้ขอลา', leaveInfo: 'ข้อมูลการลา', notSelected: 'ยังไม่เลือก', leaveFillerTitle: 'ตำแหน่งผู้กรอก', leaveFillerDept: 'แผนกผู้กรอก', leaveFillerCompany: 'บริษัทผู้กรอก', leaveApplicantTitle: 'ตำแหน่งผู้ขอลา', leaveApplicantDept: 'แผนกผู้ขอลา', leaveApplicantCompany: 'บริษัทผู้ขอลา', leaveAgentTitle: 'ตำแหน่งผู้แทน', leaveAgentDept: 'แผนกผู้แทน', leaveAgentCompany: 'บริษัทผู้แทน', backToEdit: 'กลับไปแก้ไข', confirming: 'กำลังยืนยัน...', confirmed: 'ยืนยันแล้ว', confirm: 'ยืนยัน', oaSubmitResult: 'ผลการส่ง OA', oaSubmitFailed: 'ส่ง OA ล้มเหลว', leaveResultPrefix: 'ส่งใบลางานไปยัง OA แล้ว กรุณาตรวจสอบที่', leaveResultLinkText: '【 ดูการส่งใน OA 】', requestNo: 'เลขที่เอกสาร', submitTime: 'เวลาส่ง', sourceDocs: 'เอกสารต้นทาง', attributionParts: 'ส่วนแสดงแหล่งที่มา', selectWho: 'เลือก{role}', oaDataConnected: 'เชื่อมต่อการค้นหามุมมองฐานข้อมูล OA แล้ว', searchByNameOrEmployeeId: 'ค้นหาด้วยชื่อหรือรหัสพนักงาน แล้วกด Enter', name: 'ชื่อ', employeeIdRequired: 'รหัสพนักงานห้ามว่าง', actions: { copy: 'คัดลอก', edit: 'แก้ไข', resend: 'ส่งอีกครั้ง', regenerate: 'สร้างใหม่', copySuccess: 'คัดลอกแล้ว', copyFailed: 'คัดลอกไม่สำเร็จ โปรดอนุญาตการเข้าถึงคลิปบอร์ดแล้วลองอีกครั้ง', copyEmpty: 'ไม่มีเนื้อหาให้คัดลอก' } }, profile: { title: 'โปรไฟล์', personalInfo: 'ข้อมูลส่วนตัว', basicInfo: 'ข้อมูลพื้นฐาน', department: 'แผนก', language: 'ภาษา', username: 'ชื่อผู้ใช้', employeeId: 'รหัสพนักงาน', realName: 'ชื่อจริง', email: 'อีเมล', phoneNumber: 'เบอร์โทรศัพท์', theme: 'ธีม', roleAdmin: 'ผู้ดูแลระบบ', roleUser: 'ผู้ใช้', unsavedChanges: 'คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก', editHint: 'สลับไปที่โหมดแก้ไขเพื่ออัปเดตรายละเอียดโปรไฟล์', switchEditHint: 'สลับไปที่โหมดแก้ไขเพื่ออัปเดตรายละเอียดโปรไฟล์', directEditHint: 'สามารถแก้ไขและบันทึกข้อมูลโปรไฟล์ได้โดยตรง', security: 'ความปลอดภัย', preferences: 'การตั้งค่า', edit: 'แก้ไข', cancel: 'ยกเลิก', saveSuccess: 'บันทึกโปรไฟล์สำเร็จ', passwordChanged: 'เปลี่ยนรหัสผ่านสำเร็จ', passwordMismatch: 'รหัสผ่านไม่ตรงกัน', currentPassword: 'รหัสผ่านปัจจุบัน', newPassword: 'รหัสผ่านใหม่', confirmPassword: 'ยืนยันรหัสผ่าน', changePassword: 'เปลี่ยนรหัสผ่าน' }, feedback: { title: 'ข้อเสนอแนะ', labels: { type: 'ประเภทข้อเสนอแนะ', module: 'โมดูลที่เกี่ยวข้อง', content: 'เนื้อหาข้อเสนอแนะ', }, type: { featureSuggestion: 'ข้อเสนอฟีเจอร์', issueReport: 'รายงานปัญหา', experienceOptimization: 'ปรับปรุงประสบการณ์', }, module: { knowledgeBase: 'คลังความรู้', general: 'ทั่วไป', workflow: 'เวิร์กโฟลว์', accountPermission: 'บัญชีและสิทธิ์', }, placeholder: { content: 'กรุณาอธิบายปัญหาหรือข้อเสนอแนะของคุณ เพื่อช่วยให้เราปรับปรุงอย่างต่อเนื่อง', }, msg: { fillContent: 'กรุณากรอกเนื้อหาข้อเสนอแนะ', submitFailed: 'ส่งข้อเสนอแนะไม่สำเร็จ', }, cancel: 'ยกเลิก', submitting: 'กำลังส่ง...', submit: 'ส่ง', }, kbWorkspace: { header: { groupOverviewTitle: 'ภาพรวมกลุ่มคลังความรู้', workspaceTitle: 'เวิร์กสเปซคลังความรู้', groupOverviewSubtitle: 'คลิกการ์ดกลุ่มเพื่อเข้าสู่เวิร์กสเปซของกลุ่มนั้น', workspaceSubtitle: 'โมดูลจัดการคลังความรู้และทำความสะอาดข้อมูลได้เชื่อมเข้ากับแพลตฟอร์มแล้ว หน้านี้เป็นโครงหน้าเฟสแรก', }, actions: { backToOverview: 'กลับไปภาพรวมกลุ่ม', backToWorkspace: 'กลับไปเวิร์กสเปซ', refreshGroups: 'รีเฟรชกลุ่ม', refreshDocuments: 'รีเฟรชเอกสาร', }, overview: { title: 'ภาพรวมกลุ่มคลังความรู้', loadingGroups: 'กำลังโหลดกลุ่ม...', createGroupTitle: 'สร้างกลุ่มคลังความรู้', createGroupDesc: 'อ้างอิงรูปแบบทางเข้าคลังความรู้ คลิกปุ่ม กรอกในป๊อปอัป แล้วสร้างกลุ่มใหม่', createGroupButton: 'สร้างคลังความรู้', }, }, 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;