@@ -12,7 +12,7 @@ import { initialTestPageTableHeaderCols, MyTableHeaderColumn } from "../model";
1212import { useTestRunningStatus } from "../hooks/useTestRunningStatus" ;
1313import { miniStyle } from "@/theme" ;
1414import { Button } from "react-native-paper" ;
15-
15+ import { I18n } from "@/localize" ;
1616export default function TestPage ( { path } : { path : string } ) {
1717 const { testIpCount, setTestIpCount, getIpList } = useTestIpCount ( ) ;
1818 const [ testIpCoCurrentCount , setTestIpCoCurrentCount ] = useState < string > ( "5" ) ;
@@ -93,7 +93,7 @@ export default function TestPage({ path }: { path: string }) {
9393 contentStyle = { { ...styles . paperBtnContent } }
9494 labelStyle = { { ...miniStyle . textStyle } }
9595 >
96- TEST RESPOND
96+ { I18n . t ( "testRun.testRespond" ) }
9797 </ Button >
9898 < View style = { { marginRight : 5 } } > </ View >
9999 < Button
@@ -108,7 +108,7 @@ export default function TestPage({ path }: { path: string }) {
108108 contentStyle = { { ...styles . paperBtnContent } }
109109 labelStyle = { { ...miniStyle . textStyle } }
110110 >
111- TEST DOWNLOAD
111+ { I18n . t ( "testRun.testDownload" ) }
112112 </ Button >
113113 < View style = { { marginRight : 5 } } > </ View >
114114
@@ -118,18 +118,18 @@ export default function TestPage({ path }: { path: string }) {
118118 contentStyle = { { ...styles . paperBtnContent } }
119119 labelStyle = { { ...miniStyle . textStyle } }
120120 >
121- START
121+ { I18n . t ( "general.start" ) }
122122 </ Button >
123123 </ View >
124124 < View style = { styles . toolbar } >
125- < Text > ip count </ Text >
125+ < Text > { I18n . t ( "testRun.ipCount" ) } </ Text >
126126 < TextInput
127127 style = { styles . input }
128128 onChangeText = { onTestIpCountChange }
129129 value = { testIpCount }
130130 keyboardType = "numeric"
131131 />
132- < Text > coCurrent count </ Text >
132+ < Text > { I18n . t ( "testRun.coCurrentCount" ) } </ Text >
133133 < TextInput
134134 style = { styles . input }
135135 onChangeText = { ( val ) => setTestIpCoCurrentCount ( ( ) => val ) }
@@ -138,7 +138,7 @@ export default function TestPage({ path }: { path: string }) {
138138 />
139139 </ View >
140140 < View style = { styles . toolbar } >
141- < Text > test url </ Text >
141+ < Text > { I18n . t ( "testRun.testUrl" ) } </ Text >
142142 < TextInput
143143 style = { { ...styles . input , flex : 1 } }
144144 onChangeText = { ( val ) => setTestUrl ( ( ) => val ) }
0 commit comments