File tree Expand file tree Collapse file tree
components/ConnectionEdit/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { DatabaseTypeCode , OperationColumn } from '@/constants' ;
22import { IConnectionConfig } from './types' ;
33import { InputType , AuthenticationType } from './enum' ;
4+ import i18n from '@/i18n' ;
45
56export 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 {
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments