Skip to content

Commit c8dfe0f

Browse files
committed
feat: system support i18n
1 parent 2f01708 commit c8dfe0f

File tree

13 files changed

+594
-19
lines changed

13 files changed

+594
-19
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
export default {
2+
title: 'Knowledge Base',
3+
createDataset: 'Create Knowledge Base',
4+
general: 'General',
5+
web: 'Web Site',
6+
relatedApplications: 'Related Applications',
7+
searchBar: {
8+
placeholder: 'Search by name'
9+
},
10+
setting: {
11+
vectorization: 'Vectorization',
12+
sync: 'Sync'
13+
},
14+
tip: {
15+
professionalMessage:
16+
'The community edition supports up to 50 knowledge bases. For more knowledge bases, please upgrade to the professional edition.',
17+
syncSuccess: 'Sync task sent successfully',
18+
updateModeMessage:
19+
'After modifying the knowledge base vector model, you need to vectorize the knowledge base. Do you want to continue saving?'
20+
},
21+
delete: {
22+
confirmTitle: 'Confirm Deletion of Knowledge Base:',
23+
confirmMessage1: 'This knowledge base is associated with',
24+
confirmMessage2: 'applications. Deleting it will be irreversible, please proceed with caution.'
25+
},
26+
datasetForm: {
27+
title: {
28+
info: 'Basic Information'
29+
},
30+
form: {
31+
datasetName: {
32+
label: 'Knowledge Base Name',
33+
placeholder: 'Please enter the knowledge base name',
34+
requiredMessage: 'Please enter the knowledge base name'
35+
},
36+
datasetDescription: {
37+
label: 'Knowledge Base Description',
38+
placeholder:
39+
'Describe the content of the knowledge base. A detailed description will help AI understand the content better, improving the accuracy of content retrieval and hit rate.',
40+
requiredMessage: 'Please enter the knowledge base description'
41+
},
42+
vectorModel: {
43+
label: 'Vector Model',
44+
placeholder: 'Please select a vector model',
45+
requiredMessage: 'Please enter the Embedding model'
46+
},
47+
datasetType: {
48+
label: 'Knowledge Base Type',
49+
generalInfo: 'Upload local files or manually enter',
50+
webInfo: 'Sync text data from a Web site'
51+
},
52+
source_url: {
53+
label: 'Web Root URL',
54+
placeholder: 'Please enter the Web root URL',
55+
requiredMessage: 'Please enter the Web root URL'
56+
},
57+
selector: {
58+
label: 'Selector',
59+
placeholder: 'Default is body, can input .classname/#idname/tagname'
60+
}
61+
},
62+
buttons: {},
63+
dialog: {}
64+
}
65+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
export default {
2+
title: 'Function Library',
3+
createFunction: 'Create Function',
4+
editFunction: 'Edit Function',
5+
copyFunction: 'Copy Function',
6+
searchBar: {
7+
placeholder: 'Search by function name'
8+
},
9+
setting: {
10+
disabled: 'Disabled'
11+
},
12+
tip: {
13+
saveMessage: 'Unsaved changes will be lost. Are you sure you want to exit?'
14+
},
15+
delete: {
16+
confirmTitle: 'Confirm Deletion of Function:',
17+
confirmMessage:
18+
'Deleting this function will cause errors in applications that reference it when they are queried. Please proceed with caution.'
19+
},
20+
disabled: {
21+
confirmTitle: 'Confirm Disable Function:',
22+
confirmMessage:
23+
'Disabling this function will cause errors in applications that reference it when they are queried. Please proceed with caution.'
24+
},
25+
functionForm: {
26+
title: {
27+
copy: 'Copy',
28+
editParam: 'Edit Parameters',
29+
addParam: 'Add Parameter',
30+
baseInfo: 'Basic Information'
31+
},
32+
form: {
33+
functionName: {
34+
label: 'Function Name',
35+
placeholder: 'Please enter the function name',
36+
requiredMessage: 'Please enter the function name'
37+
},
38+
functionDescription: {
39+
label: 'Description',
40+
placeholder: 'Please enter a description of the function'
41+
},
42+
permission_type: {
43+
label: 'Permissions',
44+
requiredMessage: 'Please select'
45+
},
46+
inputParam: {
47+
label: 'Input Parameters',
48+
placeholder: 'Please enter parameter values',
49+
requiredMessage: 'Please enter parameter values'
50+
},
51+
paramName: {
52+
label: 'Parameter Name',
53+
placeholder: 'Please enter the parameter name',
54+
requiredMessage: 'Please enter the parameter name'
55+
},
56+
dataType: {
57+
label: 'Data Type'
58+
},
59+
source: {
60+
label: 'Source',
61+
custom: 'Custom',
62+
reference: 'Reference Parameter'
63+
},
64+
required: {
65+
label: 'Required'
66+
},
67+
param: {
68+
outputParam: 'Output Parameters',
69+
paramInfo1: 'Displayed when using the function',
70+
paramInfo2: 'Not displayed when using the function',
71+
required: 'Required',
72+
code: 'Code',
73+
result: 'Result'
74+
},
75+
debug: {
76+
run: 'Run',
77+
output: 'Output',
78+
runResult: 'Run Result',
79+
runSuccess: 'Run Successful',
80+
runFailed: 'Run Failed'
81+
}
82+
}
83+
}
84+
}
Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1-
import notFound from './404';
2-
import application from './application';
3-
import applicationOverview from './application-overview';
4-
import system from './system';
1+
import notFound from './404'
2+
import application from './application'
3+
import applicationOverview from './application-overview'
4+
import system from './system'
5+
import functionLib from './function-lib'
6+
import user from './user'
7+
import team from './team'
8+
import template from './template'
9+
import dataset from './dataset'
510
export default {
6-
notFound,
7-
application,
8-
applicationOverview,
9-
system
10-
};
11+
notFound,
12+
application,
13+
applicationOverview,
14+
system,
15+
functionLib,
16+
user,
17+
team,
18+
template,
19+
dataset
20+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export default {
2+
title: 'Team Members',
3+
member: 'Member',
4+
manage: 'Owner',
5+
permissionSetting: 'Permission Settings',
6+
addMember: 'Add Member',
7+
addSubTitle: 'Members can access the data you authorize after logging in.',
8+
searchBar: {
9+
placeholder: 'Enter username to search'
10+
},
11+
delete: {
12+
button: 'Remove',
13+
confirmTitle: 'Confirm Removal of Member:',
14+
confirmMessage:
15+
'Removing the member will revoke their access to knowledge bases and applications.'
16+
},
17+
setting: {
18+
management: 'Manage',
19+
check: 'View'
20+
},
21+
teamForm: {
22+
form: {
23+
userName: {
24+
label: 'Username/Email',
25+
placeholder: "Enter the member's username or email",
26+
requiredMessage: 'Enter the username/email'
27+
}
28+
}
29+
}
30+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
export default {
2+
title: 'Model Settings',
3+
provider: 'Provider',
4+
providerPlaceholder: 'Select Provider',
5+
addModel: 'Add Model',
6+
searchBar: {
7+
placeholder: 'Search by name'
8+
},
9+
delete: {},
10+
setting: {},
11+
model: {
12+
allModel: 'All Models',
13+
publicModel: 'Public Models',
14+
privateModel: 'Private Models',
15+
LLM: 'Large Language Model',
16+
EMBEDDING: 'Embedding Model',
17+
RERANKER: 'Reranker Model',
18+
STT: 'Speech-to-Text',
19+
TTS: 'Text-to-Speech',
20+
IMAGE: 'Image Understanding',
21+
TTI: 'Image Generation'
22+
},
23+
templateForm: {
24+
form: {
25+
provider: {
26+
label: 'Provider',
27+
placeholder: 'Select Provider'
28+
}
29+
}
30+
}
31+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
export default {
2+
title: 'User Management',
3+
createUser: 'Create User',
4+
editUser: 'Edit User',
5+
setting: {
6+
updatePwd: 'Update User Password'
7+
},
8+
tip: {
9+
professionalMessage:
10+
'The community edition supports up to 2 users. For more users, please upgrade to the professional edition.',
11+
updatePwdSuccess: 'User password updated successfully'
12+
},
13+
delete: {
14+
confirmTitle: 'Confirm Deletion of User:',
15+
confirmMessage:
16+
'Deleting this user will also delete all resources (applications, knowledge bases, models) created by this user. Please proceed with caution.'
17+
},
18+
disabled: {
19+
confirmTitle: 'Confirm Disable Function:',
20+
confirmMessage:
21+
'Disabling this function will cause errors when applications that reference it are queried. Please proceed with caution.'
22+
},
23+
userForm: {
24+
form: {
25+
username: {
26+
label: 'Username',
27+
placeholder: 'Please enter username',
28+
requiredMessage: 'Please enter username',
29+
lengthMessage: 'Length must be between 6 and 20 characters'
30+
},
31+
nick_name: {
32+
label: 'Name',
33+
placeholder: 'Please enter name'
34+
},
35+
email: {
36+
label: 'Email',
37+
placeholder: 'Please enter email',
38+
requiredMessage: 'Please enter email'
39+
},
40+
phone: {
41+
label: 'Phone Number',
42+
placeholder: 'Please enter phone number'
43+
},
44+
password: {
45+
label: 'Login Password',
46+
placeholder: 'Please enter password',
47+
requiredMessage: 'Please enter password',
48+
lengthMessage: 'Length must be between 6 and 20 characters'
49+
},
50+
new_password: {
51+
label: 'New Password',
52+
placeholder: 'Please enter new password',
53+
requiredMessage: 'Please enter new password'
54+
},
55+
re_password: {
56+
label: 'Confirm Password',
57+
placeholder: 'Please enter confirm password',
58+
requiredMessage: 'Please enter confirm password',
59+
validatorMessage: 'Passwords do not match'
60+
}
61+
}
62+
},
63+
source: {
64+
label: 'User Type',
65+
local: 'System User',
66+
wecom: 'WeCom (Enterprise WeChat)',
67+
lark: 'Lark (Feishu)',
68+
dingtalk: 'DingTalk'
69+
}
70+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
export default {
2+
title: '知識庫',
3+
createDataset: '建立知識庫',
4+
general: '通用型',
5+
web: 'Web 站點',
6+
relatedApplications: '關聯應用',
7+
searchBar: {
8+
placeholder: '按名稱搜尋'
9+
},
10+
setting: {
11+
vectorization: '向量化',
12+
sync: '同步'
13+
},
14+
tip: {
15+
professionalMessage: '社群版最多支援 50 個知識庫,如需擁有更多知識庫,請升級為專業版。',
16+
syncSuccess: '同步任務發送成功',
17+
updateModeMessage: '修改知識庫向量模型後,需要對知識庫向量化,是否繼續保存?'
18+
},
19+
delete: {
20+
confirmTitle: '是否刪除知識庫:',
21+
confirmMessage1: '此知識庫關聯',
22+
confirmMessage2: '個應用,刪除後無法恢復,請謹慎操作。'
23+
},
24+
datasetForm: {
25+
title: {
26+
info: '基本資訊'
27+
},
28+
form: {
29+
datasetName: {
30+
label: '知識庫名稱',
31+
placeholder: '請輸入知識庫名稱',
32+
requiredMessage: '請輸入應用名稱'
33+
},
34+
datasetDescription: {
35+
label: '知識庫描述',
36+
placeholder:
37+
'描述知識庫的內容,詳盡的描述將幫助AI能深入理解該知識庫的內容,能更準確的檢索到內容,提高該知識庫的命中率。',
38+
requiredMessage: '請輸入知識庫描述'
39+
},
40+
vectorModel: {
41+
label: '向量模型',
42+
placeholder: '請選擇向量模型',
43+
requiredMessage: '請輸入Embedding模型'
44+
},
45+
datasetType: {
46+
label: '知識庫類型',
47+
generalInfo: '上傳本地檔案或手動輸入',
48+
webInfo: '同步Web網站文字資料'
49+
},
50+
source_url: {
51+
label: 'Web 根位址',
52+
placeholder: '請輸入 Web 根位址',
53+
requiredMessage: '請輸入 Web 根位址'
54+
},
55+
selector: {
56+
label: '選擇器',
57+
placeholder: '預設為 body,可輸入 .classname/#idname/tagname'
58+
}
59+
},
60+
buttons: {},
61+
dialog: {}
62+
}
63+
}

0 commit comments

Comments
 (0)