Skip to content

Commit

Permalink
trans more texts
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Nov 23, 2023
1 parent 20acaef commit 0cf9be1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions client/src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const Header: FC<HeaderType> = props => {

const { t: commonTrans } = useTranslation();
const statusTrans = commonTrans('status');
const { t: dbTrans } = useTranslation('database');
const BackIcon = icons.back;
const LogoutIcon = icons.logout;

Expand All @@ -91,7 +92,6 @@ const Header: FC<HeaderType> = props => {
};

const dbOptions = databases.map(d => ({ value: d, label: d }));

return (
<header className={classes.header}>
<div className={classes.contentWrapper}>
Expand All @@ -104,7 +104,7 @@ const Header: FC<HeaderType> = props => {
)}
{navInfo.showDatabaseSelector ? (
<CustomSelector
label="Database"
label={dbTrans('database')}
value={database}
onChange={async (e: { target: { value: unknown } }) => {
const database = e.target.value as string;
Expand Down
2 changes: 1 addition & 1 deletion client/src/i18n/cn/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const btnTrans = {
importSampleData: '导入样本数据',
loading: '加载中...',
importing: '导入中...',
example: '示例',
example: '生成随机向量',
rename: '重命名',
};

Expand Down
16 changes: 7 additions & 9 deletions client/src/i18n/cn/database.ts
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion client/src/i18n/cn/overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const overviewTrans = {
sysInfo: '系统信息',
database: '数据库',
milvusVersion: 'Milvus版本',
upTime: '根协调器运行时间',
upTime: '运行时间',
deployMode: '部署模式',
databases: '数据库',
users: '用户',
Expand Down

0 comments on commit 0cf9be1

Please sign in to comment.