mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 20:09:20 +08:00
Feat/explore (#198)
This commit is contained in:
@@ -31,6 +31,8 @@ import datasetSettingsEn from './lang/dataset-settings.en'
|
||||
import datasetSettingsZh from './lang/dataset-settings.zh'
|
||||
import datasetCreationEn from './lang/dataset-creation.en'
|
||||
import datasetCreationZh from './lang/dataset-creation.zh'
|
||||
import exploreEn from './lang/explore.en'
|
||||
import exploreZh from './lang/explore.zh'
|
||||
import { getLocaleOnClient } from '@/i18n/client'
|
||||
|
||||
const resources = {
|
||||
@@ -53,6 +55,7 @@ const resources = {
|
||||
datasetHitTesting: datasetHitTestingEn,
|
||||
datasetSettings: datasetSettingsEn,
|
||||
datasetCreation: datasetCreationEn,
|
||||
explore: exploreEn,
|
||||
},
|
||||
},
|
||||
'zh-Hans': {
|
||||
@@ -74,6 +77,7 @@ const resources = {
|
||||
datasetHitTesting: datasetHitTestingZh,
|
||||
datasetSettings: datasetSettingsZh,
|
||||
datasetCreation: datasetCreationZh,
|
||||
explore: exploreZh,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ const translation = {
|
||||
remove: 'Removed',
|
||||
},
|
||||
operation: {
|
||||
create: 'Create',
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
clear: 'Clear',
|
||||
@@ -61,7 +62,8 @@ const translation = {
|
||||
},
|
||||
menus: {
|
||||
status: 'beta',
|
||||
apps: 'Apps',
|
||||
explore: 'Explore',
|
||||
apps: 'Build Apps',
|
||||
plugins: 'Plugins',
|
||||
pluginsTips: 'Integrate third-party plugins or create ChatGPT-compatible AI-Plugins.',
|
||||
datasets: 'Datasets',
|
||||
|
||||
@@ -6,6 +6,7 @@ const translation = {
|
||||
remove: '已移除',
|
||||
},
|
||||
operation: {
|
||||
create: '创建',
|
||||
confirm: '确认',
|
||||
cancel: '取消',
|
||||
clear: '清空',
|
||||
@@ -61,7 +62,8 @@ const translation = {
|
||||
},
|
||||
menus: {
|
||||
status: 'beta',
|
||||
apps: '应用',
|
||||
explore: '探索',
|
||||
apps: '构建应用',
|
||||
plugins: '插件',
|
||||
pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。',
|
||||
datasets: '数据集',
|
||||
|
||||
38
web/i18n/lang/explore.en.ts
Normal file
38
web/i18n/lang/explore.en.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
const translation = {
|
||||
sidebar: {
|
||||
discovery: 'Discovery',
|
||||
workspace: 'Workspace',
|
||||
action: {
|
||||
pin: 'Pin',
|
||||
unpin: 'Unpin',
|
||||
delete: 'Delete',
|
||||
},
|
||||
delete: {
|
||||
title: 'Delete app',
|
||||
content: 'Are you sure you want to delete this app?',
|
||||
}
|
||||
},
|
||||
apps: {
|
||||
title: 'Explore Apps by Dify',
|
||||
description: 'Use these template apps instantly or customize your own apps based on the templates.',
|
||||
allCategories: 'All Categories',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Add to Workspace',
|
||||
customize: 'Customize',
|
||||
},
|
||||
appCustomize: {
|
||||
title: 'Create app from {{name}}',
|
||||
subTitle: 'App icon & name',
|
||||
nameRequired: 'App name is required',
|
||||
},
|
||||
category: {
|
||||
'Assistant': 'Assistant',
|
||||
'Writing': 'Writing',
|
||||
'Translate': 'Translate',
|
||||
'Programming': 'Programming',
|
||||
'HR': 'HR',
|
||||
}
|
||||
}
|
||||
|
||||
export default translation
|
||||
38
web/i18n/lang/explore.zh.ts
Normal file
38
web/i18n/lang/explore.zh.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
const translation = {
|
||||
sidebar: {
|
||||
discovery: '发现',
|
||||
workspace: '工作区',
|
||||
action: {
|
||||
pin: '置顶',
|
||||
unpin: '取消置顶',
|
||||
delete: '删除',
|
||||
},
|
||||
delete: {
|
||||
title: '删除程序',
|
||||
content: '您确定要删除此程序吗?',
|
||||
}
|
||||
},
|
||||
apps: {
|
||||
title: '探索 Dify 的应用',
|
||||
description: '使用这些模板应用程序,或根据模板自定义您自己的应用程序。',
|
||||
allCategories: '所有类别',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: '添加到工作区',
|
||||
customize: '自定义',
|
||||
},
|
||||
appCustomize: {
|
||||
title: '从 {{name}} 创建应用程序',
|
||||
subTitle: '应用程序图标和名称',
|
||||
nameRequired: '应用程序名称不能为空',
|
||||
},
|
||||
category: {
|
||||
'Assistant': '助手',
|
||||
'Writing': '写作',
|
||||
'Translate': '翻译',
|
||||
'Programming': '编程',
|
||||
'HR': '人力资源',
|
||||
}
|
||||
}
|
||||
|
||||
export default translation
|
||||
Reference in New Issue
Block a user