fix: i18n
This commit is contained in:
parent
37ebe3e68f
commit
45fe93d2b2
@ -1,6 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
quickCreatePlaceholder: 'Quickly create blank document',
|
quickCreatePlaceholder: 'Quickly create blank document',
|
||||||
quickCreateName: 'document name',
|
quickCreateName: 'File Name',
|
||||||
noData: 'No Data',
|
noData: 'No Data',
|
||||||
loading: 'Loading',
|
loading: 'Loading',
|
||||||
noMore: 'No more!',
|
noMore: 'No more!',
|
||||||
|
|||||||
@ -49,8 +49,8 @@ export default {
|
|||||||
variable: {
|
variable: {
|
||||||
global: 'Global Variable',
|
global: 'Global Variable',
|
||||||
Referencing: 'Reference Variable',
|
Referencing: 'Reference Variable',
|
||||||
ReferencingRequired: 'Reference Variable Required',
|
ReferencingRequired: 'reference variable required',
|
||||||
ReferencingError: 'Reference Variable Error',
|
ReferencingError: 'reference variable error',
|
||||||
NoReferencing: 'Non-existent Reference Variable',
|
NoReferencing: 'Non-existent Reference Variable',
|
||||||
fieldMessage: 'Please select a variable'
|
fieldMessage: 'Please select a variable'
|
||||||
},
|
},
|
||||||
@ -167,7 +167,7 @@ export default {
|
|||||||
max_paragraph_char_number: 'Maximum number of words to quote',
|
max_paragraph_char_number: 'Maximum number of words to quote',
|
||||||
reranker_model: {
|
reranker_model: {
|
||||||
label: 'Rerank',
|
label: 'Rerank',
|
||||||
placeholder: 'Please select a Rerank'
|
placeholder: 'Please select a rerank'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
formNode: {
|
formNode: {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export default {
|
|||||||
uploadMessage: 'Drag and drop files here to upload or',
|
uploadMessage: 'Drag and drop files here to upload or',
|
||||||
formats: 'Supported formats:',
|
formats: 'Supported formats:',
|
||||||
requiredMessage: 'Please upload a file',
|
requiredMessage: 'Please upload a file',
|
||||||
errorMessage1: 'Please upload a file',
|
errorMessage1: 'The file size exceeds 100mb',
|
||||||
errorMessage2: 'Unsupported file format',
|
errorMessage2: 'Unsupported file format',
|
||||||
errorMessage3: 'File cannot be empty',
|
errorMessage3: 'File cannot be empty',
|
||||||
errorMessage4: 'Up to 50 files can be uploaded at once',
|
errorMessage4: 'Up to 50 files can be uploaded at once',
|
||||||
|
|||||||
@ -3,7 +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',
|
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!',
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export default {
|
|||||||
uploadMessage: '拖拽文件至此上传或',
|
uploadMessage: '拖拽文件至此上传或',
|
||||||
formats: '支持格式:',
|
formats: '支持格式:',
|
||||||
requiredMessage: '请上传文件',
|
requiredMessage: '请上传文件',
|
||||||
errorMessage1: '请上传文件',
|
errorMessage1: '文件大小超过 100MB',
|
||||||
errorMessage2: '文件格式不支持',
|
errorMessage2: '文件格式不支持',
|
||||||
errorMessage3: '文件不能为空',
|
errorMessage3: '文件不能为空',
|
||||||
errorMessage4: '每次最多上传50个文件',
|
errorMessage4: '每次最多上传50个文件',
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export default {
|
|||||||
uploadMessage: '拖拽文件至此上傳或',
|
uploadMessage: '拖拽文件至此上傳或',
|
||||||
formats: '支持格式:',
|
formats: '支持格式:',
|
||||||
requiredMessage: '請上傳文件',
|
requiredMessage: '請上傳文件',
|
||||||
errorMessage1: '請上傳文件',
|
errorMessage1: '文件大小超過 100MB',
|
||||||
errorMessage2: '文件格式不支持',
|
errorMessage2: '文件格式不支持',
|
||||||
errorMessage3: '文件不能为空',
|
errorMessage3: '文件不能为空',
|
||||||
errorMessage4: '每次最多上傳50個文件',
|
errorMessage4: '每次最多上傳50個文件',
|
||||||
|
|||||||
@ -268,10 +268,10 @@ async function publicHandle() {
|
|||||||
const node = res.node
|
const node = res.node
|
||||||
const err_message = res.errMessage
|
const err_message = res.errMessage
|
||||||
if (typeof err_message == 'string') {
|
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 {
|
} else {
|
||||||
const keys = Object.keys(err_message)
|
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 node = res.node
|
||||||
const err_message = res.errMessage
|
const err_message = res.errMessage
|
||||||
if (typeof err_message == 'string') {
|
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 {
|
} else {
|
||||||
const keys = Object.keys(err_message)
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('views.system.authentication.ldap.password')"
|
:label="$t('views.system.authentication.password')"
|
||||||
prop="config_data.password"
|
prop="config_data.password"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
|
|||||||
@ -66,7 +66,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ $t('views.log.table.feedback.label') }}</span>
|
<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>
|
<template #reference>
|
||||||
<el-button
|
<el-button
|
||||||
style="margin-top: -2px"
|
style="margin-top: -2px"
|
||||||
@ -89,7 +89,7 @@
|
|||||||
:step="1"
|
:step="1"
|
||||||
:value-on-clear="0"
|
:value-on-clear="0"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
style="width: 100px"
|
style="width: 80px"
|
||||||
size="small"
|
size="small"
|
||||||
step-strictly
|
step-strictly
|
||||||
/>
|
/>
|
||||||
@ -104,7 +104,7 @@
|
|||||||
:step="1"
|
:step="1"
|
||||||
:value-on-clear="0"
|
:value-on-clear="0"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
style="width: 100px"
|
style="width: 80px"
|
||||||
size="small"
|
size="small"
|
||||||
step-strictly
|
step-strictly
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -156,8 +156,8 @@ function redirectAuth(authType: string) {
|
|||||||
if (!res.data) {
|
if (!res.data) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
MsgConfirm(t('login.jump_tip'), '', {
|
MsgConfirm(t('views.login.jump_tip'), '', {
|
||||||
confirmButtonText: t('login.jump'),
|
confirmButtonText: t('views.login.jump'),
|
||||||
cancelButtonText: t('common.cancel'),
|
cancelButtonText: t('common.cancel'),
|
||||||
confirmButtonClass: ''
|
confirmButtonClass: ''
|
||||||
})
|
})
|
||||||
|
|||||||
@ -13,11 +13,16 @@
|
|||||||
<login-layout style="height: 530px">
|
<login-layout style="height: 530px">
|
||||||
<LoginContainer :subTitle="data.slogan" class="login-container">
|
<LoginContainer :subTitle="data.slogan" class="login-container">
|
||||||
<div class="mask"></div>
|
<div class="mask"></div>
|
||||||
<h2 class="mb-24">{{ '普通登录' }}</h2>
|
<h2 class="mb-24">{{ $t('views.login.title') }}</h2>
|
||||||
<el-form class="login-form">
|
<el-form class="login-form">
|
||||||
<div class="mb-24">
|
<div class="mb-24">
|
||||||
<el-form-item>
|
<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>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-24">
|
<div class="mb-24">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user