fix: i18n bugs

This commit is contained in:
wangdan-fit2cloud 2025-01-22 16:46:12 +08:00
parent cd3d645ece
commit 84475b32f9
26 changed files with 86 additions and 83 deletions

View File

@ -4,10 +4,10 @@
</div> </div>
<div style="padding: 16px 10px"> <div style="padding: 16px 10px">
<el-divider v-if="size > 0 && loading"> <el-divider v-if="size > 0 && loading">
<el-text type="info"> 加载中...</el-text> <el-text type="info"> {{ $t('components.loading') }}...</el-text>
</el-divider> </el-divider>
<el-divider v-if="noMore"> <el-divider v-if="noMore">
<el-text type="info"> 到底啦</el-text> <el-text type="info"> {{ $t('components.noMore') }}</el-text>
</el-divider> </el-divider>
</div> </div>
</template> </template>

View File

@ -49,7 +49,7 @@
<el-table-column :label="$t('common.setting')" align="left" width="80"> <el-table-column :label="$t('common.setting')" align="left" width="80">
<template #default="{ row }"> <template #default="{ row }">
<span class="mr-4"> <span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.settings')" placement="top"> <el-tooltip effect="dark" :content="$t('common.setting')" placement="top">
<el-button type="primary" text @click.stop="settingApiKey(row)"> <el-button type="primary" text @click.stop="settingApiKey(row)">
<el-icon><Setting /></el-icon> <el-icon><Setting /></el-icon>
</el-button> </el-button>

View File

@ -27,7 +27,7 @@
type="password" type="password"
class="input-item" class="input-item"
v-model="resetPasswordForm.re_password" v-model="resetPasswordForm.re_password"
:placeholder="$t('views.user.userForm.form.re_password.label')" :placeholder="$t('views.user.userForm.form.re_password.placeholder')"
show-password show-password
> >
</el-input> </el-input>
@ -138,7 +138,7 @@ const rules1 = ref<FormRules<ResetCurrentUserPasswordRequest>>({
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (resetPasswordForm.value.password != resetPasswordForm.value.re_password) { if (resetPasswordForm.value.password != resetPasswordForm.value.re_password) {
callback(new Error(t('views.user.userForm.form.password.validatorMessage'))) callback(new Error(t('views.user.userForm.form.re_password.validatorMessage')))
} else { } else {
callback() callback()
} }

View File

@ -1,21 +1,21 @@
export default { export default {
create: 'Create', create: 'Create',
createSuccess: 'Create Success', createSuccess: 'Create successful',
copy: 'Copy', copy: 'Copy',
copySuccess: 'Copy Success', copySuccess: 'Copy successful',
copyError: 'Copy Failed', copyError: 'Copy Failed',
save: 'Save', save: 'Save',
saveSuccess: 'Save Success', saveSuccess: 'Save successful',
delete: 'Delete', delete: 'Delete',
deleteSuccess: 'Successfully deleted', deleteSuccess: 'Successfully deleted',
setting: 'Setting', setting: 'Settings',
settingSuccess: 'Setting Successful', settingSuccess: 'Setting successful',
submit: 'Submit', submit: 'Submit',
submitSuccess: 'Submitted successfully', submitSuccess: 'Submitted successfully',
edit: 'Edit', edit: 'Edit',
editSuccess: 'Edit Successful', editSuccess: 'Edit successful',
modify: 'Modify', modify: 'Modify',
modifySuccess: 'Modify Successful', modifySuccess: 'Modify successful',
cancel: 'Cancel', cancel: 'Cancel',
confirm: 'Confirm', confirm: 'Confirm',
tip: 'Prompt', tip: 'Prompt',
@ -47,8 +47,8 @@ export default {
}, },
status: { status: {
label: 'Status', label: 'Status',
enableSuccess: 'Enable Successful', enableSuccess: 'Enable successful',
disableSuccess: 'Disable Successful' disableSuccess: 'Disable successful'
}, },
inputPlaceholder: 'Please input', inputPlaceholder: 'Please input',
title: 'Title', title: 'Title',

View File

@ -1,5 +1,7 @@
export default { export default {
quickCreatePlaceholder: 'Quickly create blank documents', quickCreatePlaceholder: 'Quickly create blank document',
quickCreateName: 'Document name', quickCreateName: 'document name',
noData: 'No Data' noData: 'No Data',
loading: 'Loading',
noMore: 'No more',
} }

View File

@ -3,7 +3,7 @@ export default {
wiki: 'User Manual', wiki: 'User Manual',
forum: 'Forum For Help', forum: 'Forum For Help',
logout: 'Logout', logout: 'Logout',
version: 'Version',
apiKey: 'API Key', apiKey: 'API Key',
apiServiceAddress: 'API Service Address', apiServiceAddress: 'API Service Address',
language: 'Language', language: 'Language',
@ -12,6 +12,7 @@ export default {
title: 'About', title: 'About',
expiredTime: 'Expiration Date', expiredTime: 'Expiration Date',
edition: 'Edition', edition: 'Edition',
version: 'Version',
serialNo: 'Serial No.', serialNo: 'Serial No.',
remark: 'Remarks', remark: 'Remarks',
update: 'Update', update: 'Update',

View File

@ -10,14 +10,14 @@ export default {
demo: 'Demo', demo: 'Demo',
embedInWebsite: 'Embed in website', embedInWebsite: 'Embed in website',
accessControl: 'Access Control', accessControl: 'Access Control',
displaySetting: 'Display Setting', displaySetting: 'Display Settings',
apiAccessCredentials: 'API Access Credentials', apiAccessCredentials: 'API Access Credentials',
apiKey: 'API Key', apiKey: 'API Key',
refreshToken: { refreshToken: {
msgConfirm1: 'Do you want to regenerate the public access link?', msgConfirm1: 'Do you want to regenerate the public access link?',
msgConfirm2: msgConfirm2:
'Regenerating the public access link will affect third-party embedded scripts changes and will require re-embedding the new script into third-party sites. Please proceed with caution!', 'Regenerating the public access link will affect third-party embedded scripts changes and will require re-embedding the new script into third-party sites. Please proceed with caution!',
refreshSuccess: 'Refresh Successful' refreshSuccess: 'Refresh successful'
}, },
APIKeyDialog: { APIKeyDialog: {
saveSettings: 'Save Settings', saveSettings: 'Save Settings',
@ -54,7 +54,6 @@ export default {
'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io' 'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'
}, },
SettingAPIKeyDialog: { SettingAPIKeyDialog: {
dialogTitle: 'Settings',
allowCrossDomainLabel: 'Allow Cross-Domain Address', allowCrossDomainLabel: 'Allow Cross-Domain Address',
crossDomainPlaceholder: crossDomainPlaceholder:
'Please enter allowed cross-domain addresses, if open without inputting addresses, there are no restrictions.\nCross-domain addresses one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io' 'Please enter allowed cross-domain addresses, if open without inputting addresses, there are no restrictions.\nCross-domain addresses one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'

View File

@ -1,7 +1,7 @@
export default { export default {
node: 'Node', node: 'Node',
baseComponent: 'Base Component', baseComponent: 'Base Component',
nodeSetting: 'Node Setting', nodeSetting: 'Node Settings',
workflow: 'Workflow', workflow: 'Workflow',
searchBar: { searchBar: {
placeholder: 'Search by name' placeholder: 'Search by name'
@ -21,7 +21,7 @@ export default {
copyParam: 'Copy Parameter' copyParam: 'Copy Parameter'
}, },
tip: { tip: {
publicSuccess: 'Published Successfully', publicSuccess: 'Published successfully',
noData: 'No related results found', noData: 'No related results found',
nameMessage: 'Name cannot be empty!', nameMessage: 'Name cannot be empty!',
onlyRight: 'Only allow connections from the right anchor point', onlyRight: 'Only allow connections from the right anchor point',

View File

@ -63,24 +63,24 @@ export default {
} }
}, },
ResultSuccess: { ResultSuccess: {
title: 'Knowledge Base Created Successfully', title: 'Knowledge Created Successfully',
paragraph: 'Paragraphs', paragraph: 'Paragraphs',
paragraph_count: 'Paragraphs', paragraph_count: 'Paragraphs',
documentList: 'Document List', documentList: 'Document List',
loading: 'Importing', loading: 'Importing',
buttons: { buttons: {
toDataset: 'Return to Knowledge Base List', toDataset: 'Return to Knowledge List',
toDocument: 'Go to Document' toDocument: 'Go to Document'
} }
}, },
syncWeb: { syncWeb: {
title: 'Sync Knowledge Base', title: 'Sync Knowledge',
syncMethod: 'Sync Method', syncMethod: 'Sync Method',
replace: 'Replace Sync', replace: 'Replace Sync',
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',
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 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

@ -40,20 +40,20 @@ export default {
txt: { txt: {
label: 'Text File', label: 'Text File',
tip1: '1. It is recommended to standardize the paragraph markers in the file before uploading.', tip1: '1. It is recommended to standardize the paragraph markers in the file before uploading.',
tip2: '2. Up to 50 files can be uploaded at once, with each file not exceeding 100MB' tip2: '2. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
}, },
table: { table: {
label: 'Table', label: 'Table',
tip1: '1. Click to download the corresponding template and complete the information:', tip1: '1. Click to download the corresponding template and complete the information:',
tip2: '2. The first row must be column headers, and the column headers must be meaningful terms. Each record in the table will be treated as a segment.', tip2: '2. The first row must be column headers, and the column headers must be meaningful terms. Each record in the table will be treated as a segment.',
tip3: '3. Each sheet in the uploaded spreadsheet file will be treated as a document, with the sheet name as the document name.', tip3: '3. Each sheet in the uploaded spreadsheet file will be treated as a document, with the sheet name as the document name.',
tip4: '4. Up to 50 files can be uploaded at once, with each file not exceeding 100MB' tip4: '4. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
}, },
QA: { QA: {
label: 'QA Pairs', label: 'QA Pairs',
tip1: '1. Click to download the corresponding template and complete the information.', tip1: '1. Click to download the corresponding template and complete the information:',
tip2: '2. Each sheet in the uploaded spreadsheet file will be treated as a document, with the sheet name as the document name.', tip2: '2. Each sheet in the uploaded spreadsheet file will be treated as a document, with the sheet name as the document name.',
tip3: '3. Up to 50 files can be uploaded at once, with each file not exceeding 100MB' tip3: '3. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
} }
}, },
setRules: { setRules: {
@ -108,7 +108,8 @@ export default {
PENDING: 'Queued', PENDING: 'Queued',
GENERATE: 'Generating', GENERATE: 'Generating',
SYNC: 'Syncing', SYNC: 'Syncing',
REVOKE: 'Cancelling' REVOKE: 'Cancelling',
finish: 'Finish'
}, },
enableStatus: { enableStatus: {
label: 'Status', label: 'Status',

View File

@ -72,7 +72,7 @@ export default {
run: 'Run', run: 'Run',
output: 'Output', output: 'Output',
runResult: 'Run Result', runResult: 'Run Result',
runSuccess: 'Run Successful', runSuccess: 'Run successful',
runFailed: 'Run Failed' runFailed: 'Run Failed'
} }
} }

View File

@ -1,5 +1,9 @@
export default { export default {
title: 'System', title: 'System',
test: 'Test Connection',
testSuccess: 'Test connection successful',
testFailed: 'Test connection failed',
password: 'Password',
authentication: { authentication: {
title: 'Login Authentication', title: 'Login Authentication',
ldap: { ldap: {
@ -8,17 +12,13 @@ export default {
serverPlaceholder: 'Please enter LDAP address', serverPlaceholder: 'Please enter LDAP address',
bindDN: 'Bind DN', bindDN: 'Bind DN',
bindDNPlaceholder: 'Please enter Bind DN', bindDNPlaceholder: 'Please enter Bind DN',
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',
enableAuthentication: 'Enable LDAP Authentication', enableAuthentication: 'Enable LDAP Authentication',
testConnectionSuccess: 'Test Connection Success',
testConnectionFailed: 'Test Connection Failed'
}, },
cas: { cas: {
title: 'CAS Settings', title: 'CAS Settings',
@ -78,8 +78,8 @@ export default {
alreadyTurnedOn: 'Turned On', alreadyTurnedOn: 'Turned On',
notEnabled: 'Not Enabled', notEnabled: 'Not Enabled',
validate: 'Validate', validate: 'Validate',
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',
@ -131,7 +131,7 @@ export default {
saveSuccess: 'Appearance settings successfully applied' saveSuccess: 'Appearance settings successfully applied'
}, },
email: { email: {
title: 'Mail Setting', title: 'Mail Settings',
smtpHost: 'SMTP Host', smtpHost: 'SMTP Host',
smtpHostPlaceholder: 'Please enter SMTP host', smtpHostPlaceholder: 'Please enter SMTP host',
smtpPort: 'SMTP Port', smtpPort: 'SMTP Port',
@ -142,9 +142,7 @@ export default {
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',
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)',
testSuccess: 'Test Connection Successful'
} }
} }

View File

@ -1,5 +1,7 @@
export default { export default {
quickCreatePlaceholder: '快速创建空白文档', quickCreatePlaceholder: '快速创建空白文档',
quickCreateName: '文档名称', quickCreateName: '文档名称',
noData: '无匹配数据' noData: '无匹配数据',
loading: '加载中',
noMore: '到底啦!',
} }

View File

@ -3,7 +3,6 @@ export default {
wiki: '用户手册', wiki: '用户手册',
forum: '论坛求助', forum: '论坛求助',
logout: '退出', logout: '退出',
version: '版本号',
apiKey: 'API Key 管理', apiKey: 'API Key 管理',
apiServiceAddress: 'API 服务地址', apiServiceAddress: 'API 服务地址',
language: '语言', language: '语言',
@ -12,6 +11,7 @@ export default {
title: '关于', title: '关于',
expiredTime: '到期时间', expiredTime: '到期时间',
edition: '版本', edition: '版本',
version: '版本号',
serialNo: '序列号', serialNo: '序列号',
remark: '备注', remark: '备注',
update: '更新', update: '更新',

View File

@ -106,7 +106,8 @@ export default {
PENDING: '排队中', PENDING: '排队中',
GENERATE: '生成中', GENERATE: '生成中',
SYNC: '同步中', SYNC: '同步中',
REVOKE: '取消中' REVOKE: '取消中',
finish:'完成'
}, },
enableStatus: { enableStatus: {
label: '启用状态', label: '启用状态',

View File

@ -1,5 +1,9 @@
export default { export default {
title: '系统设置', title: '系统设置',
test: '测试连接',
testSuccess: '测试连接成功',
testFailed: '测试连接失败',
password: '密码',
authentication: { authentication: {
title: '登录认证', title: '登录认证',
ldap: { ldap: {
@ -8,17 +12,13 @@ export default {
serverPlaceholder: '请输入LDAP 地址', serverPlaceholder: '请输入LDAP 地址',
bindDN: '绑定DN', bindDN: '绑定DN',
bindDNPlaceholder: '请输入绑定 DN', bindDNPlaceholder: '请输入绑定 DN',
password: '密码',
ou: '用户OU', ou: '用户OU',
ouPlaceholder: '请输入用户 OU', ouPlaceholder: '请输入用户 OU',
ldap_filter: '用户过滤器', ldap_filter: '用户过滤器',
ldap_filterPlaceholder: '请输入用户过滤器', ldap_filterPlaceholder: '请输入用户过滤器',
ldap_mapping: 'LDAP 属性映射', ldap_mapping: 'LDAP 属性映射',
ldap_mappingPlaceholder: '请输入 LDAP 属性映射', ldap_mappingPlaceholder: '请输入 LDAP 属性映射',
test: '测试连接', enableAuthentication: '启用 LDAP 认证'
enableAuthentication: '启用 LDAP 认证',
testConnectionSuccess: '测试连接成功',
testConnectionFailed: '测试连接失败'
}, },
cas: { cas: {
title: 'CAS 设置', title: 'CAS 设置',
@ -138,11 +138,9 @@ export default {
smtpUserPlaceholder: '请输入 SMTP 账户', smtpUserPlaceholder: '请输入 SMTP 账户',
sendEmail: '发件人邮箱', sendEmail: '发件人邮箱',
sendEmailPlaceholder: '请输入发件人邮箱', sendEmailPlaceholder: '请输入发件人邮箱',
smtpPassword: '密码', smtpPassword: '发件人密码',
smtpPasswordPlaceholder: '请输入发件人密码', smtpPasswordPlaceholder: '请输入发件人密码',
test: '测试连接',
enableSSL: '启用 SSL如果 SMTP 端口是 465通常需要启用 SSL', enableSSL: '启用 SSL如果 SMTP 端口是 465通常需要启用 SSL',
enableTLS: '启用 TLS如果 SMTP 端口是 587通常需要启用 TLS', enableTLS: '启用 TLS如果 SMTP 端口是 587通常需要启用 TLS'
testSuccess: '测试连接成功'
} }
} }

View File

@ -1,5 +1,7 @@
export default { export default {
quickCreatePlaceholder: '快速創建空白文檔', quickCreatePlaceholder: '快速創建空白文檔',
quickCreateName: '文檔名稱', quickCreateName: '文檔名稱',
noData: '無匹配数据' noData: '無匹配数据',
loading: '加載中',
noMore: '到底啦!',
} }

View File

@ -3,7 +3,7 @@ export default {
wiki: '使用者手冊', wiki: '使用者手冊',
forum: '論壇求助', forum: '論壇求助',
logout: '退出', logout: '退出',
version: '版本號',
apiKey: 'API Key 管理', apiKey: 'API Key 管理',
apiServiceAddress: 'API 服務地址', apiServiceAddress: 'API 服務地址',
language: '語言', language: '語言',
@ -12,6 +12,7 @@ export default {
title: '關於', title: '關於',
expiredTime: '到期時間', expiredTime: '到期時間',
edition: '版本', edition: '版本',
version: '版本號',
serialNo: '序列號', serialNo: '序列號',
remark: '備註', remark: '備註',
update: '更新', update: '更新',

View File

@ -107,7 +107,8 @@ export default {
PENDING: '排隊中', PENDING: '排隊中',
GENERATE: '生成中', GENERATE: '生成中',
SYNC: '同步中', SYNC: '同步中',
REVOKE: '取消中' REVOKE: '取消中',
finish: '完圓'
}, },
enableStatus: { enableStatus: {
label: '啟用狀態', label: '啟用狀態',

View File

@ -1,5 +1,9 @@
export default { export default {
title: '系統設置', title: '系統設置',
test: '測試連線',
testSuccess: '測試連線成功',
testFailed: '測試連線失敗',
password: '密碼',
authentication: { authentication: {
title: '登入認證', title: '登入認證',
ldap: { ldap: {
@ -8,18 +12,14 @@ export default {
serverPlaceholder: '請輸入LDAP 位址', serverPlaceholder: '請輸入LDAP 位址',
bindDN: '綁定DN', bindDN: '綁定DN',
bindDNPlaceholder: '請輸入綁定 DN', bindDNPlaceholder: '請輸入綁定 DN',
password: '密碼',
ou: '使用者OU', ou: '使用者OU',
ouPlaceholder: '請輸入使用者 OU', ouPlaceholder: '請輸入使用者 OU',
ldap_filter: '使用者過濾器', ldap_filter: '使用者過濾器',
ldap_filterPlaceholder: '請輸入使用者過濾器', ldap_filterPlaceholder: '請輸入使用者過濾器',
ldap_mapping: 'LDAP 屬性對應', ldap_mapping: 'LDAP 屬性對應',
ldap_mappingPlaceholder: '請輸入 LDAP 屬性對應', ldap_mappingPlaceholder: '請輸入 LDAP 屬性對應',
test: '測試連線',
enableAuthentication: '啟用 LDAP 認證', enableAuthentication: '啟用 LDAP 認證',
save: '儲存',
testConnectionSuccess: '測試連線成功',
testConnectionFailed: '測試連線失敗'
}, },
cas: { cas: {
title: 'CAS 設定', title: 'CAS 設定',
@ -139,11 +139,9 @@ export default {
smtpUserPlaceholder: '請輸入 SMTP 帳戶', smtpUserPlaceholder: '請輸入 SMTP 帳戶',
sendEmail: '發件人信箱', sendEmail: '發件人信箱',
sendEmailPlaceholder: '請輸入發件人信箱', sendEmailPlaceholder: '請輸入發件人信箱',
smtpPassword: '密碼', smtpPassword: '發件人密碼',
smtpPasswordPlaceholder: '請輸入發件人密碼', smtpPasswordPlaceholder: '請輸入發件人密碼',
test: '測試連接',
enableSSL: '啟用 SSL如果 SMTP 端口是 465通常需要啟用 SSL', enableSSL: '啟用 SSL如果 SMTP 端口是 465通常需要啟用 SSL',
enableTLS: '啟用 TLS如果 SMTP 端口是 587通常需要啟用 TLS', enableTLS: '啟用 TLS如果 SMTP 端口是 587通常需要啟用 TLS',
testSuccess: '測試連接成功'
} }
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<el-dialog <el-dialog
:title="$t('views.applicationOverview.appInfo.SettingAPIKeyDialog.dialogTitle')" :title="$t('common.setting')"
v-model="dialogVisible" v-model="dialogVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"

View File

@ -70,7 +70,7 @@
<div class="text-right"> <div class="text-right">
<el-button @click="submit(authFormRef, 'test')" :disabled="loading"> <el-button @click="submit(authFormRef, 'test')" :disabled="loading">
{{ $t('views.system.authentication.ldap.test') }}</el-button {{ $t('views.system.test') }}</el-button
> >
<el-button @click="submit(authFormRef)" type="primary" :disabled="loading"> <el-button @click="submit(authFormRef)" type="primary" :disabled="loading">
{{ $t('common.save') }} {{ $t('common.save') }}
@ -156,7 +156,7 @@ const submit = async (formEl: FormInstance | undefined, test?: string) => {
if (valid) { if (valid) {
if (test) { if (test) {
authApi.postAuthSetting(form.value, loading).then((res) => { authApi.postAuthSetting(form.value, loading).then((res) => {
MsgSuccess(t('views.system.authentication.ldap.testConnectionSuccess')) MsgSuccess(t('views.system.testFailed'))
}) })
} else { } else {
authApi.putAuthSetting(form.value.auth_type, form.value, loading).then((res) => { authApi.putAuthSetting(form.value.auth_type, form.value, loading).then((res) => {

View File

@ -130,8 +130,8 @@
<AppIcon iconName="app-warning-colorful" style="font-size: 16px"></AppIcon> <AppIcon iconName="app-warning-colorful" style="font-size: 16px"></AppIcon>
</div> </div>
<div class="ml-16 lighter"> <div class="ml-16 lighter">
<p>{{ $t('views.document.fileType.table.tip1') }}</p> <p>{{ $t('views.document.fileType.txt.tip1') }}</p>
<p>{{ $t('views.document.fileType.table.tip2') }}</p> <p>{{ $t('views.document.fileType.txt.tip2') }}</p>
</div> </div>
</div> </div>
<el-upload <el-upload

View File

@ -27,7 +27,7 @@
class="ml-8 lighter" class="ml-8 lighter"
:style="{ color: [State.FAILURE, State.REVOKED].includes(status.state) ? '#F54A45' : '' }" :style="{ color: [State.FAILURE, State.REVOKED].includes(status.state) ? '#F54A45' : '' }"
> >
完成 {{ $t('views.document.fileStatus.finish') }}
{{ {{
Object.keys(status.aggs ? status.aggs : {}) Object.keys(status.aggs ? status.aggs : {})
.filter((k) => k == State.SUCCESS) .filter((k) => k == State.SUCCESS)

View File

@ -34,7 +34,7 @@
:placeholder="$t('views.system.email.sendEmailPlaceholder')" :placeholder="$t('views.system.email.sendEmailPlaceholder')"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('views.system.email.smtpPassword')" prop="email_host_password"> <el-form-item :label="$t('views.system.password')" prop="email_host_password">
<el-input <el-input
v-model="form.email_host_password" v-model="form.email_host_password"
:placeholder="$t('views.system.email.smtpPasswordPlaceholder')" :placeholder="$t('views.system.email.smtpPasswordPlaceholder')"
@ -52,7 +52,7 @@
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
<el-button @click="submit(emailFormRef, 'test')" :disabled="loading"> <el-button @click="submit(emailFormRef, 'test')" :disabled="loading">
{{ $t('views.system.email.test') }} {{ $t('views.system.test') }}
</el-button> </el-button>
</el-form> </el-form>
@ -112,7 +112,7 @@ const submit = async (formEl: FormInstance | undefined, test?: string) => {
if (valid) { if (valid) {
if (test) { if (test) {
emailApi.postTestEmail(form.value, loading).then((res) => { emailApi.postTestEmail(form.value, loading).then((res) => {
MsgSuccess(t('views.system.email.testSuccess')) MsgSuccess(t('views.system.testSuccess'))
}) })
} else { } else {
emailApi.putEmailSetting(form.value, loading).then((res) => { emailApi.putEmailSetting(form.value, loading).then((res) => {

View File

@ -11,15 +11,11 @@
<span>{{ item.label }} {{ '{' + item.value + '}' }}</span> <span>{{ item.label }} {{ '{' + item.value + '}' }}</span>
<el-tooltip <el-tooltip
effect="dark" effect="dark"
content="$t('views.applicationWorkflow.setting.copyParam')" :content="$t('views.applicationWorkflow.setting.copyParam')"
placement="top" placement="top"
v-if="showicon === true" v-if="showicon === true"
> >
<el-button <el-button link @click="copyClick(`{{global.${item.value}}}`)" style="padding: 0">
link
@click="copyClick(`{{${$t('views.applicationWorkflow.variable.global')}.${item.value}}}`)"
style="padding: 0"
>
<AppIcon iconName="app-copy"></AppIcon> <AppIcon iconName="app-copy"></AppIcon>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
@ -37,7 +33,10 @@ const props = defineProps<{ nodeModel: any }>()
const showicon = ref(false) const showicon = ref(false)
const globalFields = [ const globalFields = [
{ label: t('views.applicationWorkflow.nodes.startNode.currentTime'), value: 'time' }, { label: t('views.applicationWorkflow.nodes.startNode.currentTime'), value: 'time' },
{ label: t('views.application.applicationForm.form.historyRecord.label'), value: 'history_context' }, {
label: t('views.application.applicationForm.form.historyRecord.label'),
value: 'history_context'
},
{ label: t('chat.chatId'), value: 'chat_id' } { label: t('chat.chatId'), value: 'chat_id' }
] ]