fix: i18n

This commit is contained in:
wangdan-fit2cloud 2025-01-23 12:10:03 +08:00
parent 37ebe3e68f
commit 45fe93d2b2
11 changed files with 25 additions and 20 deletions

View File

@ -1,6 +1,6 @@
export default {
quickCreatePlaceholder: 'Quickly create blank document',
quickCreateName: 'document name',
quickCreateName: 'File Name',
noData: 'No Data',
loading: 'Loading',
noMore: 'No more',

View File

@ -49,8 +49,8 @@ export default {
variable: {
global: 'Global Variable',
Referencing: 'Reference Variable',
ReferencingRequired: 'Reference Variable Required',
ReferencingError: 'Reference Variable Error',
ReferencingRequired: 'reference variable required',
ReferencingError: 'reference variable error',
NoReferencing: 'Non-existent Reference Variable',
fieldMessage: 'Please select a variable'
},
@ -167,7 +167,7 @@ export default {
max_paragraph_char_number: 'Maximum number of words to quote',
reranker_model: {
label: 'Rerank',
placeholder: 'Please select a Rerank'
placeholder: 'Please select a rerank'
}
},
formNode: {

View File

@ -28,7 +28,7 @@ export default {
uploadMessage: 'Drag and drop files here to upload or',
formats: 'Supported formats:',
requiredMessage: 'Please upload a file',
errorMessage1: 'Please upload a file',
errorMessage1: 'The file size exceeds 100mb',
errorMessage2: 'Unsupported file format',
errorMessage3: 'File cannot be empty',
errorMessage4: 'Up to 50 files can be uploaded at once',

View File

@ -3,7 +3,7 @@ export default {
createProblem: 'Create Question',
detailProblem: 'Question Details',
quickCreateProblem: 'Quick Create Question',
quickCreateName: 'question',
quickCreateName: 'Question',
tip: {
placeholder: 'Enter the question, support multiple entries, one per line.',
errorMessage: 'Question cannot be empty!',

View File

@ -28,7 +28,7 @@ export default {
uploadMessage: '拖拽文件至此上传或',
formats: '支持格式:',
requiredMessage: '请上传文件',
errorMessage1: '请上传文件',
errorMessage1: '文件大小超过 100MB',
errorMessage2: '文件格式不支持',
errorMessage3: '文件不能为空',
errorMessage4: '每次最多上传50个文件',

View File

@ -29,7 +29,7 @@ export default {
uploadMessage: '拖拽文件至此上傳或',
formats: '支持格式:',
requiredMessage: '請上傳文件',
errorMessage1: '請上傳文件',
errorMessage1: '文件大小超過 100MB',
errorMessage2: '文件格式不支持',
errorMessage3: '文件不能为空',
errorMessage4: '每次最多上傳50個文件',

View File

@ -268,10 +268,10 @@ async function publicHandle() {
const node = res.node
const err_message = res.errMessage
if (typeof err_message == 'string') {
MsgError(res.node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message)
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message)
} else {
const keys = Object.keys(err_message)
MsgError(node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message[keys[0]]?.[0]?.message)
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message[keys[0]]?.[0]?.message)
}
})
}
@ -300,10 +300,10 @@ const clickShowDebug = () => {
const node = res.node
const err_message = res.errMessage
if (typeof err_message == 'string') {
MsgError(res.node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message)
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message)
} else {
const keys = Object.keys(err_message)
MsgError(node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message[keys[0]]?.[0]?.message)
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message[keys[0]]?.[0]?.message)
}
})
}

View File

@ -28,7 +28,7 @@
/>
</el-form-item>
<el-form-item
:label="$t('views.system.authentication.ldap.password')"
:label="$t('views.system.authentication.password')"
prop="config_data.password"
>
<el-input

View File

@ -66,7 +66,7 @@
<template #header>
<div>
<span>{{ $t('views.log.table.feedback.label') }}</span>
<el-popover :width="190" trigger="click" :visible="popoverVisible">
<el-popover :width="200" trigger="click" :visible="popoverVisible">
<template #reference>
<el-button
style="margin-top: -2px"
@ -89,7 +89,7 @@
:step="1"
:value-on-clear="0"
controls-position="right"
style="width: 100px"
style="width: 80px"
size="small"
step-strictly
/>
@ -104,7 +104,7 @@
:step="1"
:value-on-clear="0"
controls-position="right"
style="width: 100px"
style="width: 80px"
size="small"
step-strictly
/>

View File

@ -156,8 +156,8 @@ function redirectAuth(authType: string) {
if (!res.data) {
return
}
MsgConfirm(t('login.jump_tip'), '', {
confirmButtonText: t('login.jump'),
MsgConfirm(t('views.login.jump_tip'), '', {
confirmButtonText: t('views.login.jump'),
cancelButtonText: t('common.cancel'),
confirmButtonClass: ''
})

View File

@ -13,11 +13,16 @@
<login-layout style="height: 530px">
<LoginContainer :subTitle="data.slogan" class="login-container">
<div class="mask"></div>
<h2 class="mb-24">{{ '普通登录' }}</h2>
<h2 class="mb-24">{{ $t('views.login.title') }}</h2>
<el-form class="login-form">
<div class="mb-24">
<el-form-item>
<el-input size="large" class="input-item" :placeholder="$t('views.user.userForm.form.username.placeholder')"> </el-input>
<el-input
size="large"
class="input-item"
:placeholder="$t('views.user.userForm.form.username.placeholder')"
>
</el-input>
</el-form-item>
</div>
<div class="mb-24">