From 0cf9be108c174c3260225a287629e2d5669a4005 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Thu, 23 Nov 2023 19:08:35 +0800 Subject: [PATCH] trans more texts Signed-off-by: ryjiang --- client/src/components/layout/Header.tsx | 4 ++-- client/src/i18n/cn/button.ts | 2 +- client/src/i18n/cn/database.ts | 16 +++++++--------- client/src/i18n/cn/overview.ts | 2 +- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/client/src/components/layout/Header.tsx b/client/src/components/layout/Header.tsx index 165b8b32..fa10a180 100644 --- a/client/src/components/layout/Header.tsx +++ b/client/src/components/layout/Header.tsx @@ -70,6 +70,7 @@ const Header: FC = props => { const { t: commonTrans } = useTranslation(); const statusTrans = commonTrans('status'); + const { t: dbTrans } = useTranslation('database'); const BackIcon = icons.back; const LogoutIcon = icons.logout; @@ -91,7 +92,6 @@ const Header: FC = props => { }; const dbOptions = databases.map(d => ({ value: d, label: d })); - return (
@@ -104,7 +104,7 @@ const Header: FC = props => { )} {navInfo.showDatabaseSelector ? ( { const database = e.target.value as string; diff --git a/client/src/i18n/cn/button.ts b/client/src/i18n/cn/button.ts index 153014d2..47e9d274 100644 --- a/client/src/i18n/cn/button.ts +++ b/client/src/i18n/cn/button.ts @@ -22,7 +22,7 @@ const btnTrans = { importSampleData: '导入样本数据', loading: '加载中...', importing: '导入中...', - example: '示例', + example: '生成随机向量', rename: '重命名', }; diff --git a/client/src/i18n/cn/database.ts b/client/src/i18n/cn/database.ts index b9c35628..c6220f9b 100644 --- a/client/src/i18n/cn/database.ts +++ b/client/src/i18n/cn/database.ts @@ -1,13 +1,11 @@ const databaseTrans = { - createTitle: 'Create Database', - databases: 'Databases', - database: 'Database', - deleteWarning: - 'You are trying to drop a database. This action cannot be undone.', - databaseName: 'Database Name', - confirmDatabase: 'Confirm Password', - deleteTip: - 'Please select at least one item to drop and the default database can not be dropped.', + createTitle: '创建数据库', + databases: '数据库', + database: '数据库', + deleteWarning: '您正在尝试删除一个数据库。此操作无法撤销。', + databaseName: '数据库名称', + confirmDatabase: '确认密码', + deleteTip: '请至少选择一个要删除的项目,且默认数据库不能被删除。', }; export default databaseTrans; diff --git a/client/src/i18n/cn/overview.ts b/client/src/i18n/cn/overview.ts index 49ce1a81..803d9b6e 100644 --- a/client/src/i18n/cn/overview.ts +++ b/client/src/i18n/cn/overview.ts @@ -7,7 +7,7 @@ const overviewTrans = { sysInfo: '系统信息', database: '数据库', milvusVersion: 'Milvus版本', - upTime: '根协调器运行时间', + upTime: '运行时间', deployMode: '部署模式', databases: '数据库', users: '用户',