fix: i18n bugs

This commit is contained in:
wangdan-fit2cloud 2025-01-22 15:06:30 +08:00
parent 3c859a6b7b
commit f924827c7c
17 changed files with 74 additions and 71 deletions

View File

@ -27,7 +27,7 @@
</el-tooltip> </el-tooltip>
<el-divider direction="vertical" /> <el-divider direction="vertical" />
<el-tooltip effect="dark" :content="$t('common.copy')" placement="top"> <el-tooltip effect="dark" :content="$t('common.copy')" placement="top">
<el-button text @click="copyClick(data?.answer_text)"> <el-button text @click="copyClick(data?.answer_text.trim())">
<AppIcon iconName="app-copy"></AppIcon> <AppIcon iconName="app-copy"></AppIcon>
</el-button> </el-button>
</el-tooltip> </el-tooltip>

View File

@ -17,7 +17,7 @@ export default {
show: 'Show Default' show: 'Show Default'
}, },
tip: { tip: {
requiredMessage: 'Cannot be empty', requiredMessage: 'cannot be empty',
jsonMessage: 'Incorrect JSON format' jsonMessage: 'Incorrect JSON format'
}, },
searchBar: { searchBar: {

View File

@ -21,9 +21,9 @@ export default {
}, },
APIKeyDialog: { APIKeyDialog: {
saveSettings: 'Save Settings', saveSettings: 'Save Settings',
msgConfirm1: 'Are you sure you want to delete the API Key?', msgConfirm1: 'Are you sure you want to delete the API key?',
msgConfirm2: msgConfirm2:
'Deleting the API Key cannot be undone. Please confirm if you want to delete it!', 'Deleting the API key cannot be undone. Please confirm if you want to delete it!',
enabledSuccess: 'Enabled', enabledSuccess: 'Enabled',
disabledSuccess: 'Disabled' disabledSuccess: 'Disabled'
}, },

View File

@ -63,9 +63,9 @@ export default {
}, },
validate: { validate: {
startNodeRequired: 'Start Node Required', startNodeRequired: 'Start Node Required',
startNodeOnly: 'There can only be one Start Node', startNodeOnly: 'There can only be one start node',
baseNodeRequired: 'Base Info Node Required', baseNodeRequired: 'Base Info Node Required',
baseNodeOnly: 'There can only be one Base Info Node', baseNodeOnly: 'There can only be one base info node',
notInWorkFlowNode: 'Node not in workflow', notInWorkFlowNode: 'Node not in workflow',
noNextNode: 'Non-existent next node', noNextNode: 'Non-existent next node',
nodeUnavailable: 'Node unavailable', nodeUnavailable: 'Node unavailable',
@ -197,7 +197,7 @@ export default {
answer: 'AI Answer Content', answer: 'AI Answer Content',
model: { model: {
label: 'Vision Model', label: 'Vision Model',
requiredMessage: 'Please select a Vision Model' requiredMessage: 'Please select a vision model'
}, },
image: { image: {
label: 'Select Image', label: 'Select Image',

View File

@ -163,10 +163,10 @@ export default {
wecomSetting: { wecomSetting: {
title: 'WeCom Configuration', title: 'WeCom Configuration',
cropId: 'Crop ID', cropId: 'Crop ID',
cropIdPlaceholder: 'Please enter Crop ID', cropIdPlaceholder: 'Please enter crop ID',
agentIdPlaceholder: 'Please enter Agent ID', agentIdPlaceholder: 'Please enter agent ID',
secretPlaceholder: 'Please enter Secret', secretPlaceholder: 'Please enter secret',
tokenPlaceholder: 'Please enter Token', tokenPlaceholder: 'Please enter token',
encodingAesKeyPlaceholder: 'Please enter EncodingAESKey', encodingAesKeyPlaceholder: 'Please enter EncodingAESKey',
authenticationSuccessful: 'Authentication successful', authenticationSuccessful: 'Authentication successful',
urlInfo: urlInfo:
@ -174,8 +174,8 @@ export default {
}, },
dingtalkSetting: { dingtalkSetting: {
title: 'DingTalk Configuration', title: 'DingTalk Configuration',
clientIdPlaceholder: 'Please enter Client ID', clientIdPlaceholder: 'Please enter client ID',
clientSecretPlaceholder: 'Please enter Client Secret', clientSecretPlaceholder: 'Please enter client secret',
urlInfo: urlInfo:
'-On the robot page, set the "Message Receiving Mode" to HTTP mode, and fill in the above URL into the "Message Receiving Address"' '-On the robot page, set the "Message Receiving Mode" to HTTP mode, and fill in the above URL into the "Message Receiving Address"'
}, },
@ -190,13 +190,13 @@ export default {
aesKey: 'Message Encryption Key', aesKey: 'Message Encryption Key',
aesKeyPlaceholder: 'Please enter the message encryption key', aesKeyPlaceholder: 'Please enter the message encryption key',
urlInfo: urlInfo:
'-Settings and Development-Basic Configuration-"Server Address URL" in Server Configuration' '-Settings and Development-Basic Configuration-"Server Address URL" in server configuration'
}, },
larkSetting: { larkSetting: {
title: 'Lark Configuration', title: 'Lark Configuration',
appIdPlaceholder: 'Please enter App ID', appIdPlaceholder: 'Please enter APP ID',
appSecretPlaceholder: 'Please enter App Secret', appSecretPlaceholder: 'Please enter APP secret',
verificationTokenPlaceholder: 'Please enter Verification Token', verificationTokenPlaceholder: 'Please enter verification token',
urlInfo: urlInfo:
'-Events and callbacks - event configuration - configure the "request address" of the subscription method' '-Events and callbacks - event configuration - configure the "request address" of the subscription method'
}, },

View File

@ -21,7 +21,7 @@ export default {
'After modifying the knowledge vector model, you need to vectorize the knowledge. Do you want to continue saving?' 'After modifying the knowledge vector model, you need to vectorize the knowledge. Do you want to continue saving?'
}, },
delete: { delete: {
confirmTitle: 'Confirm Deletion of Knowledge:', confirmTitle: 'Confirm deletion of knowledge:',
confirmMessage1: 'This knowledge is associated with', confirmMessage1: 'This knowledge is associated with',
confirmMessage2: 'APP. Deleting it will be irreversible, please proceed with caution.' confirmMessage2: 'APP. Deleting it will be irreversible, please proceed with caution.'
}, },
@ -43,18 +43,18 @@ export default {
}, },
EmbeddingModel: { EmbeddingModel: {
label: 'Embedding Model', label: 'Embedding Model',
placeholder: 'Please select a Embedding Model', placeholder: 'Please select a embedding model',
requiredMessage: 'Please enter the Embedding model' requiredMessage: 'Please enter the embedding model'
}, },
datasetType: { datasetType: {
label: 'Knowledge Type', label: 'Knowledge Type',
generalInfo: 'Upload local documents', generalInfo: 'Upload local documents',
webInfo: 'Sync text data from a Web site' webInfo: 'Sync text data from a web site'
}, },
source_url: { source_url: {
label: 'Web Root URL', label: 'Web Root URL',
placeholder: 'Please enter the web root URL', placeholder: 'Please enter the web root URL',
requiredMessage: 'Please enter the Web root URL' requiredMessage: 'Please enter the web root URL'
}, },
selector: { selector: {
label: 'Selector', label: 'Selector',
@ -80,7 +80,7 @@ export default {
replaceText: 'Re-fetch Web site documents, replacing the documents in the local knowledge base', replaceText: 'Re-fetch Web site documents, replacing the documents in the local knowledge base',
complete: 'Full Sync', complete: 'Full Sync',
completeText: completeText:
'Delete all documents in the local knowledge base and re-fetch Web site documents', 'Delete all documents in the local knowledge base and re-fetch web site documents',
tip: 'Note: All syncs will delete existing data and re-fetch new data. Please proceed with caution.' tip: 'Note: All syncs will delete existing data and re-fetch new data. Please proceed with caution.'
} }
} }

View File

@ -5,7 +5,7 @@ export default {
selected: 'Selected', selected: 'Selected',
items: 'Items', items: 'Items',
searchBar: { searchBar: {
placeholder: 'Search by Document Name' placeholder: 'Search by document name'
}, },
setting: { setting: {
migration: 'Move', migration: 'Move',
@ -84,7 +84,7 @@ export default {
}, },
checkedConnect: { checkedConnect: {
label: label:
'Add Segment Titles as Associated Questions During Import (Applicable for QA Pairs where Titles are Questions)' 'Add segment titles as associated questions during import (Applicable for QA pairs where titles are questions)'
} }
}, },
buttons: { buttons: {
@ -117,26 +117,26 @@ export default {
}, },
sync: { sync: {
label: 'Sync', label: 'Sync',
confirmTitle: 'Confirm Sync Document?', confirmTitle: 'Confirm sync document?',
confirmMessage1: confirmMessage1:
'Syncing will delete existing data and retrieve new data. Please proceed with caution.', 'Syncing will delete existing data and retrieve new data. Please proceed with caution.',
confirmMessage2: 'Cannot sync, please set the document URL first.', confirmMessage2: 'Cannot sync, please set the document URL first.',
successMessage: 'Document synced successfully' successMessage: 'Document synced successfully'
}, },
delete: { delete: {
confirmTitle1: 'Confirm Batch Deletion of', confirmTitle1: 'Confirm batch deletion of',
confirmTitle2: 'Documents?', confirmTitle2: 'Documents?',
confirmMessage: confirmMessage:
'Segments within the selected documents will also be deleted. Please proceed with caution.', 'Segments within the selected documents will also be deleted. Please proceed with caution.',
successMessage: 'Batch deletion successful', successMessage: 'Batch deletion successful',
confirmTitle3: 'Confirm Deleting Document:', confirmTitle3: 'Confirm deleting document:',
confirmMessage1: 'Under this document', confirmMessage1: 'Under this document',
confirmMessage2: 'All segments will be deleted, please operate with caution. ' confirmMessage2: 'All segments will be deleted, please operate with caution. '
}, },
form: { form: {
source_url: { source_url: {
label: 'Document URL', label: 'Document URL',
placeholder: 'Enter document URLs, one per line. Incorrect URLs will cause import failure.', placeholder: 'Enter document URL, one per line. Incorrect URL will cause import failure.',
requiredMessage: 'Please enter a document URL' requiredMessage: 'Please enter a document URL'
}, },
selector: { selector: {

View File

@ -13,12 +13,12 @@ export default {
saveMessage: 'Unsaved changes will be lost. Are you sure you want to exit?' saveMessage: 'Unsaved changes will be lost. Are you sure you want to exit?'
}, },
delete: { delete: {
confirmTitle: 'Confirm Deletion of Function:', confirmTitle: 'Confirm deletion of function:',
confirmMessage: confirmMessage:
'Deleting this function will cause errors in APP that reference it when they are queried. Please proceed with caution.' 'Deleting this function will cause errors in APP that reference it when they are queried. Please proceed with caution.'
}, },
disabled: { disabled: {
confirmTitle: 'Confirm Disable Function:', confirmTitle: 'Confirm disable function:',
confirmMessage: confirmMessage:
'Disabling this function will cause errors in APP that reference it when they are queried. Please proceed with caution.' 'Disabling this function will cause errors in APP that reference it when they are queried. Please proceed with caution.'
}, },

View File

@ -1,8 +1,8 @@
export default { export default {
title: 'Conversation Logs', title: 'Conversation Logs',
delete: { delete: {
confirmTitle: 'Confirm Deletion of Question:', confirmTitle: 'Confirm deletion of question:',
confirmMessage1: 'Deleting this Question will cancel the association of', confirmMessage1: 'Deleting this question will cancel the association of',
confirmMessage2: 'paragraphs. Please proceed with caution.' confirmMessage2: 'paragraphs. Please proceed with caution.'
}, },
buttons: { buttons: {

View File

@ -9,7 +9,7 @@ export default {
cancelSelected: 'Cancel Selection' cancelSelected: 'Cancel Selection'
}, },
delete: { delete: {
confirmTitle: 'Confirm Deletion of Paragraph:', confirmTitle: 'Confirm deletion of paragraph:',
confirmMessage: 'Deletion cannot be undone. Please proceed with caution.' confirmMessage: 'Deletion cannot be undone. Please proceed with caution.'
}, },
relatedProblem: { relatedProblem: {

View File

@ -3,6 +3,7 @@ export default {
createProblem: 'Create Question', createProblem: 'Create Question',
detailProblem: 'Question Details', detailProblem: 'Question Details',
quickCreateProblem: 'Quick Create Question', quickCreateProblem: 'Quick Create Question',
quickCreateName: 'question',
tip: { tip: {
placeholder: 'Enter the question, support multiple entries, one per line.', placeholder: 'Enter the question, support multiple entries, one per line.',
errorMessage: 'Question cannot be empty!', errorMessage: 'Question cannot be empty!',
@ -15,23 +16,23 @@ export default {
cancelRelated: 'Cancel Association' cancelRelated: 'Cancel Association'
}, },
searchBar: { searchBar: {
placeholder: 'Search by Name' placeholder: 'Search by name'
}, },
table: { table: {
paragraph_count: 'Number of Associated Paragraphs', paragraph_count: 'Number of Associated Paragraphs',
updateTime: 'Update Time' updateTime: 'Update Time'
}, },
delete: { delete: {
confirmTitle: 'Confirm Deletion of question:', confirmTitle: 'Confirm deletion of question:',
confirmMessage1: 'Deleting this question will cancel the association of', confirmMessage1: 'Deleting this question will cancel the association of',
confirmMessage2: 'paragraphs. Please proceed with caution.' confirmMessage2: 'paragraphs. Please proceed with caution.'
}, },
relateParagraph: { relateParagraph: {
title: 'Associate Paragraphs', title: 'Associate Paragraphs',
selectDocument: 'Select Document', selectDocument: 'Select Document',
placeholder: 'Search by Document Name', placeholder: 'Search by document name',
selectParagraph: 'Select Paragraph', selectParagraph: 'Select Paragraph',
selectedParagraph: 'Selected Paragraphs', selectedParagraph: 'Selected Paragraphs',
count: 'Count' count: 'Count'
}, }
} }

View File

@ -10,11 +10,11 @@ export default {
bindDNPlaceholder: 'Please enter Bind DN', bindDNPlaceholder: 'Please enter Bind DN',
password: 'Password', password: 'Password',
ou: 'User OU', ou: 'User OU',
ouPlaceholder: 'Please enter User OU', ouPlaceholder: 'Please enter user OU',
ldap_filter: 'User Filter', ldap_filter: 'User Filter',
ldap_filterPlaceholder: 'Please enter User Filter', ldap_filterPlaceholder: 'Please enter user filter',
ldap_mapping: 'LDAP Attribute Mapping', ldap_mapping: 'LDAP Attribute Mapping',
ldap_mappingPlaceholder: 'Please enter LDAP Attribute Mapping', ldap_mappingPlaceholder: 'Please enter LDAP attribute mapping',
test: 'Test Connection', test: 'Test Connection',
enableAuthentication: 'Enable LDAP Authentication', enableAuthentication: 'Enable LDAP Authentication',
testConnectionSuccess: 'Test Connection Success', testConnectionSuccess: 'Test Connection Success',
@ -25,48 +25,48 @@ export default {
ldpUri: 'ldpUri', ldpUri: 'ldpUri',
ldpUriPlaceholder: 'Please enter ldpUri', ldpUriPlaceholder: 'Please enter ldpUri',
validateUrl: 'Validation Address', validateUrl: 'Validation Address',
validateUrlPlaceholder: 'Please enter Validation Address', validateUrlPlaceholder: 'Please enter validation address',
redirectUrl: 'Callback Address', redirectUrl: 'Callback Address',
redirectUrlPlaceholder: 'Please enter Callback Address', redirectUrlPlaceholder: 'Please enter callback address',
enableAuthentication: 'Enable CAS Authentication' enableAuthentication: 'Enable CAS Authentication'
}, },
oidc: { oidc: {
title: 'OIDC Settings', title: 'OIDC Settings',
authEndpoint: 'Auth Endpoint', authEndpoint: 'Auth Endpoint',
authEndpointPlaceholder: 'Please enter Auth Endpoint', authEndpointPlaceholder: 'Please enter auth endpoint',
tokenEndpoint: 'Token Endpoint', tokenEndpoint: 'Token Endpoint',
tokenEndpointPlaceholder: 'Please enter Token Endpoint', tokenEndpointPlaceholder: 'Please enter token endpoint',
userInfoEndpoint: 'User Info Endpoint', userInfoEndpoint: 'User Info Endpoint',
userInfoEndpointPlaceholder: 'Please enter User Info Endpoint', userInfoEndpointPlaceholder: 'Please enter user info endpoint',
clientId: 'Client ID', clientId: 'Client ID',
clientIdPlaceholder: 'Please enter Client ID', clientIdPlaceholder: 'Please enter client ID',
clientSecret: 'Client Secret', clientSecret: 'Client Secret',
clientSecretPlaceholder: 'Please enter Client Secret', clientSecretPlaceholder: 'Please enter client secret',
logoutEndpoint: 'Logout Endpoint', logoutEndpoint: 'Logout Endpoint',
logoutEndpointPlaceholder: 'Please enter Logout Endpoint', logoutEndpointPlaceholder: 'Please enter logout endpoint',
redirectUrl: 'Redirect URL', redirectUrl: 'Redirect URL',
redirectUrlPlaceholder: 'Please enter Redirect URL', redirectUrlPlaceholder: 'Please enter redirect URL',
enableAuthentication: 'Enable OIDC Authentication' enableAuthentication: 'Enable OIDC Authentication'
}, },
oauth2: { oauth2: {
title: 'OAuth2 Settings', title: 'OAuth2 Settings',
authEndpoint: 'Auth Endpoint', authEndpoint: 'Auth Endpoint',
authEndpointPlaceholder: 'Please enter Auth Endpoint', authEndpointPlaceholder: 'Please enter auth endpoint',
tokenEndpoint: 'Token Endpoint', tokenEndpoint: 'Token Endpoint',
tokenEndpointPlaceholder: 'Please enter Token Endpoint', tokenEndpointPlaceholder: 'Please enter token endpoint',
userInfoEndpoint: 'User Info Endpoint', userInfoEndpoint: 'User Info Endpoint',
userInfoEndpointPlaceholder: 'Please enter User Info Endpoint', userInfoEndpointPlaceholder: 'Please enter user info endpoint',
scope: 'Scope', scope: 'Scope',
scopePlaceholder: 'Please enter Scope', scopePlaceholder: 'Please enter scope',
clientId: 'Client ID', clientId: 'Client ID',
clientIdPlaceholder: 'Please enter Client ID', clientIdPlaceholder: 'Please enter client ID',
clientSecret: 'Client Secret', clientSecret: 'Client Secret',
clientSecretPlaceholder: 'Please enter Client Secret', clientSecretPlaceholder: 'Please enter client secret',
redirectUrl: 'Redirect URL', redirectUrl: 'Redirect URL',
redirectUrlPlaceholder: 'Please enter Redirect URL', redirectUrlPlaceholder: 'Please enter redirect URL',
filedMapping: 'Field Mapping', filedMapping: 'Field Mapping',
filedMappingPlaceholder: 'Please enter Field Mapping', filedMappingPlaceholder: 'Please enter field mapping',
enableAuthentication: 'Enable OAuth2 Authentication' enableAuthentication: 'Enable OAuth2 Authentication'
}, },
scanTheQRCode: { scanTheQRCode: {
@ -81,10 +81,10 @@ export default {
validateSuccess: 'Validation Successful', validateSuccess: 'Validation Successful',
validateFailed: 'Validation Failed', validateFailed: 'Validation Failed',
validateFailedTip: 'Please fill in all required fields and ensure the format is correct', validateFailedTip: 'Please fill in all required fields and ensure the format is correct',
appKeyPlaceholder: 'Please enter App Key', appKeyPlaceholder: 'Please enter APP key',
appSecretPlaceholder: 'Please enter App Secret', appSecretPlaceholder: 'Please enter APP secret',
corpIdPlaceholder: 'Please enter Corp ID', corpIdPlaceholder: 'Please enter corp ID',
agentIdPlaceholder: 'Please enter Agent ID', agentIdPlaceholder: 'Please enter agent ID',
callbackWarning: 'Please enter a valid URL address' callbackWarning: 'Please enter a valid URL address'
} }
}, },
@ -133,15 +133,15 @@ export default {
email: { email: {
title: 'Mail Setting', title: 'Mail Setting',
smtpHost: 'SMTP Host', smtpHost: 'SMTP Host',
smtpHostPlaceholder: 'Please enter SMTP Host', smtpHostPlaceholder: 'Please enter SMTP host',
smtpPort: 'SMTP Port', smtpPort: 'SMTP Port',
smtpPortPlaceholder: 'Please enter SMTP Port', smtpPortPlaceholder: 'Please enter SMTP port',
smtpUser: 'SMTP User', smtpUser: 'SMTP User',
smtpUserPlaceholder: 'Please enter SMTP User', smtpUserPlaceholder: 'Please enter SMTP user',
sendEmail: 'Send Email', sendEmail: 'Send Email',
sendEmailPlaceholder: 'Please enter Send Email', sendEmailPlaceholder: 'Please enter send email',
smtpPassword: 'SMTP Password', smtpPassword: 'SMTP Password',
smtpPasswordPlaceholder: 'Please enter SMTP Password', smtpPasswordPlaceholder: 'Please enter SMTP password',
test: 'Test Connection', test: 'Test Connection',
enableSSL: 'Enable SSL (if the SMTP port is 465, you usually need to enable SSL)', enableSSL: 'Enable SSL (if the SMTP port is 465, you usually need to enable SSL)',
enableTLS: 'Enable TLS (if the SMTP port is 587, you usually need to enable TLS)', enableTLS: 'Enable TLS (if the SMTP port is 587, you usually need to enable TLS)',

View File

@ -10,7 +10,7 @@ export default {
}, },
delete: { delete: {
button: 'Remove', button: 'Remove',
confirmTitle: 'Confirm Removal of Member:', confirmTitle: 'Confirm removal of member:',
confirmMessage: confirmMessage:
'Removing the member will revoke their access to knowledge and APP.' 'Removing the member will revoke their access to knowledge and APP.'
}, },

View File

@ -11,12 +11,12 @@ export default {
updatePwdSuccess: 'User password updated successfully' updatePwdSuccess: 'User password updated successfully'
}, },
delete: { delete: {
confirmTitle: 'Confirm Deletion of User:', confirmTitle: 'Confirm deletion of user:',
confirmMessage: confirmMessage:
'Deleting this user will also delete all resources (APP, knowledge, models) created by this user. Please proceed with caution.' 'Deleting this user will also delete all resources (APP, knowledge, models) created by this user. Please proceed with caution.'
}, },
disabled: { disabled: {
confirmTitle: 'Confirm Disable Function:', confirmTitle: 'Confirm disable function:',
confirmMessage: confirmMessage:
'Disabling this function will cause errors when APP that reference it are queried. Please proceed with caution.' 'Disabling this function will cause errors when APP that reference it are queried. Please proceed with caution.'
}, },

View File

@ -3,6 +3,7 @@ export default {
createProblem: '创建问题', createProblem: '创建问题',
detailProblem: '问题详情', detailProblem: '问题详情',
quickCreateProblem: '快速创建问题', quickCreateProblem: '快速创建问题',
quickCreateName: '问题',
tip: { tip: {
placeholder: '请输入问题,支持输入多个,一行一个。', placeholder: '请输入问题,支持输入多个,一行一个。',
errorMessage: '问题不能为空!', errorMessage: '问题不能为空!',

View File

@ -3,6 +3,7 @@ export default {
createProblem: '建立問題', createProblem: '建立問題',
detailProblem: '問題詳情', detailProblem: '問題詳情',
quickCreateProblem: '快速建立問題', quickCreateProblem: '快速建立問題',
quickCreateName: '問題',
tip: { tip: {
placeholder: '請輸入問題,支持輸入多個,一行一個。', placeholder: '請輸入問題,支持輸入多個,一行一個。',
errorMessage: '問題不能為空!', errorMessage: '問題不能為空!',

View File

@ -28,7 +28,7 @@
:data="problemData" :data="problemData"
:pagination-config="paginationConfig" :pagination-config="paginationConfig"
quick-create quick-create
:quickCreateName="$t('views.problem.title')" :quickCreateName="$t('views.problem.quickCreateName')"
:quickCreatePlaceholder="$t('views.problem.quickCreateProblem')" :quickCreatePlaceholder="$t('views.problem.quickCreateProblem')"
:quickCreateMaxlength="256" :quickCreateMaxlength="256"
@sizeChange="handleSizeChange" @sizeChange="handleSizeChange"