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 style="padding: 16px 10px">
<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 v-if="noMore">
<el-text type="info"> 到底啦</el-text>
<el-text type="info"> {{ $t('components.noMore') }}</el-text>
</el-divider>
</div>
</template>

View File

@ -49,7 +49,7 @@
<el-table-column :label="$t('common.setting')" align="left" width="80">
<template #default="{ row }">
<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-icon><Setting /></el-icon>
</el-button>

View File

@ -27,7 +27,7 @@
type="password"
class="input-item"
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
>
</el-input>
@ -138,7 +138,7 @@ const rules1 = ref<FormRules<ResetCurrentUserPasswordRequest>>({
{
validator: (rule, value, callback) => {
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 {
callback()
}

View File

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

View File

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

View File

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

View File

@ -10,14 +10,14 @@ export default {
demo: 'Demo',
embedInWebsite: 'Embed in website',
accessControl: 'Access Control',
displaySetting: 'Display Setting',
displaySetting: 'Display Settings',
apiAccessCredentials: 'API Access Credentials',
apiKey: 'API Key',
refreshToken: {
msgConfirm1: 'Do you want to regenerate the public access link?',
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!',
refreshSuccess: 'Refresh Successful'
refreshSuccess: 'Refresh successful'
},
APIKeyDialog: {
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'
},
SettingAPIKeyDialog: {
dialogTitle: 'Settings',
allowCrossDomainLabel: 'Allow Cross-Domain Address',
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'

View File

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

View File

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

View File

@ -40,20 +40,20 @@ export default {
txt: {
label: 'Text File',
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: {
label: 'Table',
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.',
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: {
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.',
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: {
@ -108,7 +108,8 @@ export default {
PENDING: 'Queued',
GENERATE: 'Generating',
SYNC: 'Syncing',
REVOKE: 'Cancelling'
REVOKE: 'Cancelling',
finish: 'Finish'
},
enableStatus: {
label: 'Status',

View File

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

View File

@ -1,5 +1,9 @@
export default {
title: 'System',
test: 'Test Connection',
testSuccess: 'Test connection successful',
testFailed: 'Test connection failed',
password: 'Password',
authentication: {
title: 'Login Authentication',
ldap: {
@ -8,17 +12,13 @@ export default {
serverPlaceholder: 'Please enter LDAP address',
bindDN: 'Bind DN',
bindDNPlaceholder: 'Please enter Bind DN',
password: 'Password',
ou: 'User OU',
ouPlaceholder: 'Please enter user OU',
ldap_filter: 'User Filter',
ldap_filterPlaceholder: 'Please enter user filter',
ldap_mapping: 'LDAP Attribute Mapping',
ldap_mappingPlaceholder: 'Please enter LDAP attribute mapping',
test: 'Test Connection',
enableAuthentication: 'Enable LDAP Authentication',
testConnectionSuccess: 'Test Connection Success',
testConnectionFailed: 'Test Connection Failed'
},
cas: {
title: 'CAS Settings',
@ -78,8 +78,8 @@ export default {
alreadyTurnedOn: 'Turned On',
notEnabled: 'Not Enabled',
validate: 'Validate',
validateSuccess: 'Validation Successful',
validateFailed: 'Validation Failed',
validateSuccess: 'Validation successful',
validateFailed: 'Validation failed',
validateFailedTip: 'Please fill in all required fields and ensure the format is correct',
appKeyPlaceholder: 'Please enter APP key',
appSecretPlaceholder: 'Please enter APP secret',
@ -131,7 +131,7 @@ export default {
saveSuccess: 'Appearance settings successfully applied'
},
email: {
title: 'Mail Setting',
title: 'Mail Settings',
smtpHost: 'SMTP Host',
smtpHostPlaceholder: 'Please enter SMTP host',
smtpPort: 'SMTP Port',
@ -142,9 +142,7 @@ export default {
sendEmailPlaceholder: 'Please enter send email',
smtpPassword: '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)',
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 {
quickCreatePlaceholder: '快速创建空白文档',
quickCreateName: '文档名称',
noData: '无匹配数据'
noData: '无匹配数据',
loading: '加载中',
noMore: '到底啦!',
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -70,7 +70,7 @@
<div class="text-right">
<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">
{{ $t('common.save') }}
@ -156,7 +156,7 @@ const submit = async (formEl: FormInstance | undefined, test?: string) => {
if (valid) {
if (test) {
authApi.postAuthSetting(form.value, loading).then((res) => {
MsgSuccess(t('views.system.authentication.ldap.testConnectionSuccess'))
MsgSuccess(t('views.system.testFailed'))
})
} else {
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>
</div>
<div class="ml-16 lighter">
<p>{{ $t('views.document.fileType.table.tip1') }}</p>
<p>{{ $t('views.document.fileType.table.tip2') }}</p>
<p>{{ $t('views.document.fileType.txt.tip1') }}</p>
<p>{{ $t('views.document.fileType.txt.tip2') }}</p>
</div>
</div>
<el-upload

View File

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

View File

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

View File

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