Skip to content

Commit f44f910

Browse files
feat: i18n
1 parent d9c6b6b commit f44f910

File tree

16 files changed

+45
-63
lines changed

16 files changed

+45
-63
lines changed

ui/src/layout/components/top-bar/top-menu/MenuItem.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<template>
2-
<div class="menu-item-container flex-center h-full" :class="isActive ? 'active' : ''"
3-
@click="router.push({ name: menu.name })">
2+
<div
3+
class="menu-item-container flex-center h-full"
4+
:class="isActive ? 'active' : ''"
5+
@click="router.push({ name: menu.name })"
6+
>
47
<!-- <div class="icon">
58
<AppIcon :iconName="menu.meta ? (menu.meta.icon as string) : '404'" />
69
</div> -->
710
<div class="title">
8-
{{
9-
$te(`layout.MenuItem.${String(props.menu.name)}`)
10-
? $t(`layout.MenuItem.${String(props.menu.name)}`)
11-
: menu.meta?.title
12-
}}
11+
{{ menu.meta?.title }}
1312
</div>
14-
1513
</div>
1614
</template>
1715
<script setup lang="ts">

ui/src/locales/lang/en-US/layout.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ export default {
22
github: 'Project address',
33
wiki: 'User manual',
44
forum: 'Forum for help',
5-
MenuItem: {
6-
application: 'Application',
7-
dataset: 'Knowledge',
8-
setting: 'System settings',
9-
function_lib: 'function library'
10-
},
115
avatar: {
126
about: 'About',
137
logout: 'Logout',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
title: "404",
3-
message: "Unable to Access Application",
3+
message: "Unable to Access APP",
44
operate: "Back to Home",
55
};

ui/src/locales/lang/en-US/views/application-overview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
title: 'Overview',
33
appInfo: {
4-
header: 'Application Info',
4+
header: 'APP Info',
55
publicAccessLink: 'Public Access Link',
66
openText: 'On',
77
closeText: 'Off',

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
onlyRight: 'Only allow connections from the right anchor point',
2828
notRecyclable: 'Cannot create a loop connection',
2929
onlyLeft: 'Only allow connections to the left anchor point',
30-
applicationNodeError: 'This application is unavailable',
30+
applicationNodeError: 'This APP is unavailable',
3131
functionNodeError: 'This function is unavailable',
3232
repeatedNodeError: 'Node name already exists!',
3333
cannotCopy: 'Cannot be copied',
@@ -246,7 +246,7 @@ Please output an optimized question.`,
246246
text: 'Execute custom scripts to achieve data processing'
247247
},
248248
applicationNode: {
249-
label: 'Application Node'
249+
label: 'APP Node'
250250
}
251251
},
252252
compare: {

ui/src/locales/lang/en-US/views/application.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
2-
title: 'Applications',
3-
createApplication: 'Create Application',
4-
importApplication: 'Import Application',
5-
copyApplication: 'Copy Application',
2+
title: 'APP',
3+
createApplication: 'Create APP',
4+
importApplication: 'Import APP',
5+
copyApplication: 'Copy APP',
66
workflow: 'WORKFLOW',
77
simple: 'SIMPLE',
88
searchBar: {
@@ -13,37 +13,37 @@ export default {
1313
demo: 'Demo'
1414
},
1515
delete: {
16-
confirmTitle: 'Are you sure you want to delete this application?',
16+
confirmTitle: 'Are you sure you want to delete this APP?',
1717
confirmMessage:
18-
'Deleting this application will no longer provide its services. Please proceed with caution.'
18+
'Deleting this APP will no longer provide its services. Please proceed with caution.'
1919
},
2020
tip: {
2121
ExportError: 'Export Failed',
2222
professionalMessage:
23-
'The Community Edition supports up to 5 applications. If you need more applications, please upgrade to the Professional Edition.',
23+
'The Community Edition supports up to 5 APP. If you need more APP, please upgrade to the Professional Edition.',
2424
saveErrorMessage: 'Saving failed, please check your input or try again later',
2525
loadingErrorMessage: 'Failed to load configuration, please check your input or try again later'
2626
},
2727

2828
applicationForm: {
2929
title: {
30-
info: 'Application Information',
30+
info: 'APP Information',
3131
appTest: 'Debug Preview',
3232
copy: 'copy'
3333
},
3434
form: {
3535
appName: {
36-
label: 'Application Name',
37-
placeholder: 'Please enter the application name',
38-
requiredMessage: 'Application name is required'
36+
label: 'APP Name',
37+
placeholder: 'Please enter the APP name',
38+
requiredMessage: 'APP name is required'
3939
},
4040
appDescription: {
41-
label: 'Application Description',
41+
label: 'APP Description',
4242
placeholder:
43-
'Describe the application scenario and use, e.g.: XXX assistant answering user questions about XXX product usage'
43+
'Describe the APP scenario and use, e.g.: XXX assistant answering user questions about XXX product usage'
4444
},
4545
appType: {
46-
label: 'Please select the application type',
46+
label: 'Please select the APP type',
4747
simplePlaceholder: 'Suitable for beginners to create assistant.',
4848
workflowPlaceholder: 'Suitable for advanced users to customize the workflow of assistant'
4949
},
@@ -140,17 +140,17 @@ export default {
140140
}
141141
},
142142
applicationAccess: {
143-
title: 'Application Access',
143+
title: 'APP Access',
144144
wecom: 'WeCom',
145-
wecomTip: 'Create WeCom intelligent applications',
145+
wecomTip: 'Create WeCom intelligent APP',
146146
dingtalk: 'DingTalk',
147-
dingtalkTip: 'Create DingTalk intelligent applications',
147+
dingtalkTip: 'Create DingTalk intelligent APP',
148148
wechat: 'WeChat',
149-
wechatTip: 'Create WeChat intelligent applications',
149+
wechatTip: 'Create WeChat intelligent APP',
150150
lark: 'Lark',
151-
larkTip: 'Create Lark intelligent applications',
151+
larkTip: 'Create Lark intelligent APP',
152152
setting: 'Setting',
153-
info: 'Application Information',
153+
info: 'APP Information',
154154
callback: 'Callback Address',
155155
callbackTip: 'Please fill in the callback address',
156156
wecomPlatform: 'WeCom Open Platform',
@@ -167,7 +167,7 @@ export default {
167167
encodingAesKeyPlaceholder: 'Please enter EncodingAESKey',
168168
authenticationSuccessful: 'Authentication successful',
169169
urlInfo:
170-
'-Application management-Self-built-Created application-Receive messages-Set the "URL" received by the API'
170+
'-APP management-Self-built-Created APP-Receive messages-Set the "URL" received by the API'
171171
},
172172
dingtalkSetting: {
173173
title: 'DingTalk Configuration',

ui/src/locales/lang/en-US/views/dataset.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export default {
2-
title: 'Knowledge Base',
3-
createDataset: 'Create Knowledge Base',
2+
title: 'Knowledge',
3+
createDataset: 'Create Knowledge',
44
general: 'General',
55
web: 'Web Site',
6-
relatedApplications: 'Related Applications',
6+
relatedApplications: 'Related App',
77
searchBar: {
88
placeholder: 'Search by name'
99
},

ui/src/locales/lang/en-US/views/function-lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
title: 'Function Library',
2+
title: 'Function',
33
createFunction: 'Create Function',
44
editFunction: 'Edit Function',
55
copyFunction: 'Copy Function',

ui/src/locales/lang/en-US/views/system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
title: 'System Settings',
2+
title: 'System',
33
authentication: {
44
title: 'Login Authentication',
55
ldap: {

ui/src/locales/lang/zh-CN/layout.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ export default {
22
github: '项目地址',
33
wiki: '用户手册',
44
forum: '论坛求助',
5-
MenuItem: {
6-
application: '应用',
7-
dataset: '知识库',
8-
setting: '系统管理',
9-
function_lib: '函数库'
10-
},
115
avatar: {
126
about: '关于',
137
logout: '退出',

0 commit comments

Comments
 (0)