Skip to content

Commit 2036f20

Browse files
committed
i18n
1 parent 0406523 commit 2036f20

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

chat2db-client/src/components/ConnectionEdit/config/dataSource.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DatabaseTypeCode, OperationColumn } from '@/constants';
22
import { IConnectionConfig } from './types';
33
import { InputType, AuthenticationType } from './enum';
4+
import i18n from '@/i18n';
45

56
export const sshConfig: IConnectionConfig['ssh'] = {
67
items: [
@@ -595,7 +596,7 @@ export const dataSourceFormConfigs: IConnectionConfig[] = [
595596
required: true,
596597
selects: [
597598
{
598-
label: 'TCP',
599+
label: i18n('common.label.tcp'),
599600
value: 'TCP',
600601
items: [],
601602
onChange: (data: IConnectionConfig) => {
@@ -605,7 +606,7 @@ export const dataSourceFormConfigs: IConnectionConfig[] = [
605606
}
606607
},
607608
{
608-
label: 'LocalFile',
609+
label: i18n('common.label.LocalFile'),
609610
value: 'LocalFile',
610611
items: [
611612
{

chat2db-client/src/i18n/en-us/common.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,6 @@ export default {
117117
'common.button.close': 'Close',
118118
'common.button.closeAll': 'Close all',
119119
'common.button.closeOthers': 'Close others',
120+
'common.label.tcp': 'TCP',
121+
'common.label.LocalFile': 'LocalFile',
120122
};

chat2db-client/src/i18n/zh-cn/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ export default {
116116
'common.button.close': '关闭',
117117
'common.button.closeAll': '全部关闭',
118118
'common.button.closeOthers': '关闭其他',
119-
120-
119+
'common.label.tcp': '线上',
120+
'common.label.LocalFile': '本地',
121121
};

0 commit comments

Comments
 (0)