refactor(weknoracloud): enhance internationalization and UI feedback for credential management
- Updated the WeKnoraCloud settings and related components to utilize i18n for improved localization. - Replaced hardcoded strings with translation keys for better maintainability and user experience. - Enhanced user feedback messages for credential status, including configuration, expiration, and unconfiguration states. - Improved UI elements to guide users in managing WeKnoraCloud credentials effectively. This update streamlines the user interface and ensures consistent messaging across different languages.
This commit is contained in:
@@ -579,6 +579,36 @@ export default {
|
||||
systemSettings: 'System Settings',
|
||||
tenantInfo: 'Tenant Info',
|
||||
apiInfo: 'API Info',
|
||||
weknoraCloud: {
|
||||
title: 'WeKnora Cloud',
|
||||
description: 'Configure WeKnora Cloud APPID and APPSECRET credentials. Credentials are used for model services and document parsing engine.',
|
||||
viewDocs: 'View Docs',
|
||||
unconfigured: 'Credentials not configured. Please fill in APPID and APPSECRET.',
|
||||
configured: 'Credentials configured and working.',
|
||||
expired: 'WeKnora Cloud credentials expired',
|
||||
expiredDefault: 'Encryption key changed after service restart. Saved credentials cannot be decrypted. Please re-enter credentials.',
|
||||
reconfigure: 'Reconfigure',
|
||||
appIdLabel: 'APPID',
|
||||
appIdDesc: 'WeKnora Cloud application ID',
|
||||
appIdPlaceholder: 'Enter APPID',
|
||||
appSecretLabel: 'APPSECRET',
|
||||
appSecretDesc: 'WeKnora Cloud application secret',
|
||||
appSecretPlaceholder: 'Enter APPSECRET',
|
||||
saveHint: 'Credentials will be validated and encrypted before saving.',
|
||||
saveBtn: 'Save Credentials',
|
||||
usageTitle: 'Usage Guide',
|
||||
usageSteps: '1. Fill in and save APPID and APPSECRET on this page\n2. Model services: Go to Model Management, add a model with Remote API source, select WeKnoraCloud as provider\n3. Document parsing: Go to Knowledge Base Settings → Parser Engine, select WeKnora Cloud engine for desired file types',
|
||||
fillRequired: 'Please fill in APPID and APPSECRET',
|
||||
saveSuccess: 'Credentials saved successfully',
|
||||
saveFailed: 'Failed to save credentials',
|
||||
credentialConfigured: 'WeKnoraCloud credentials configured.',
|
||||
credentialExpired: 'Credentials expired. Please reconfigure.',
|
||||
credentialUnconfigured: 'WeKnoraCloud credentials not configured. Please set up APPID and APPSECRET first.',
|
||||
checkingStatus: 'Checking credential status...',
|
||||
goToSettings: 'Go to Settings',
|
||||
modelHintConfigured: 'WeKnoraCloud credentials configured. See supported models in',
|
||||
modelHintDocsLink: 'API docs',
|
||||
},
|
||||
system: 'System Settings',
|
||||
systemConfig: 'System Configuration',
|
||||
knowledgeBaseSettings: 'Knowledge Base Settings',
|
||||
@@ -3167,6 +3197,10 @@ export default {
|
||||
name: 'MinerU Cloud',
|
||||
desc: 'MinerU Cloud API',
|
||||
},
|
||||
weknoracloud: {
|
||||
name: 'WeKnora Cloud',
|
||||
desc: 'Document parsing via WeKnora Cloud',
|
||||
},
|
||||
},
|
||||
},
|
||||
supportedFormats: 'Supported formats',
|
||||
|
||||
Reference in New Issue
Block a user