@@ -17,10 +17,12 @@ import { useState, useMemo, type ChangeEventHandler, type FormEvent } from "reac
1717import { postTargetPrices } from "../service/http-client" ;
1818import { type UserRequest } from "../model/user" ;
1919import { useAtom } from 'jotai' ;
20+ import { useTranslation } from 'node_modules/react-i18next' ;
2021
2122
2223const TargetPriceModal = ( ) => {
2324 let controller : AbortController | null = null ;
25+ const { t } = useTranslation ( ) ;
2426 const [ targetDiesel , setTargetDiesel ] = useState ( '0' ) ;
2527 const [ targetE5 , setTargetE5 ] = useState ( '0' ) ;
2628 const [ targetE10 , setTargetE10 ] = useState ( '0' ) ;
@@ -100,7 +102,7 @@ const TargetPriceModal = () => {
100102 margin = "dense"
101103 value = { targetDiesel }
102104 onChange = { handleTargetDieselChange }
103- label = "Targetprice Diesel"
105+ label = { t ( 'targetPrice.diesel' ) }
104106 type = "string"
105107 fullWidth
106108 variant = "standard" />
@@ -109,7 +111,7 @@ const TargetPriceModal = () => {
109111 margin = "dense"
110112 value = { targetE5 }
111113 onChange = { handleTargetE5Change }
112- label = "Targetprice E5"
114+ label = { t ( 'targetPrice.e5' ) }
113115 type = "string"
114116 fullWidth
115117 variant = "standard" />
@@ -118,14 +120,14 @@ const TargetPriceModal = () => {
118120 margin = "dense"
119121 value = { targetE10 }
120122 onChange = { handleTargetE10Change }
121- label = "Targetprice E10"
123+ label = { t ( 'targetPrice.e10' ) }
122124 type = "string"
123125 fullWidth
124126 variant = "standard" />
125127 </ div >
126128 < div >
127- < Button type = "submit" > Ok </ Button >
128- < Button onClick = { handleCancel } > Cancel </ Button >
129+ < Button type = "submit" > { t ( 'common.ok' ) } </ Button >
130+ < Button onClick = { handleCancel } > { t ( 'common.cancel' ) } </ Button >
129131 </ div >
130132 </ Box >
131133 </ DialogContent >
0 commit comments