File tree 3 files changed +4
-10
lines changed
3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,8 @@ const IGNORE_MISSING: RegExp[] = [
17
17
// key used by upsertMapWaypointsInOperationalPoints
18
18
/ t r a n s l a t i o n : r e q u e s t e d P o i n t / ,
19
19
// key used by checkStdcmConfigErrors
20
- / t r a n s l a t i o n : d e p a r t u r e T i m e / ,
21
20
/ s t d c m - h e l p - s e c t i o n : a s u / ,
22
21
/ s t d c m - h e l p - s e c t i o n : s e c t i o n s / ,
23
- / t r a n s l a t i o n : r e m a i n i n g T r a c k C o n f l i c t s / ,
24
- / t r a n s l a t i o n : r e m a i n i n g W o r k C o n f l i c t s / ,
25
- / t r a n s l a t i o n : t r a c k C o n f l i c t / ,
26
- / t r a n s l a t i o n : t r a c k C o n f l i c t S a m e D a y / ,
27
- / t r a n s l a t i o n : w o r k C o n f l i c t / ,
28
- / t r a n s l a t i o n : w o r k C o n f l i c t S a m e D a y / ,
29
22
] ;
30
23
31
24
const IGNORE_UNUSED : RegExp [ ] = [
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const StdcmResults = ({
62
62
const hasConflictResults = hasConflicts ( outputs ) ;
63
63
const hasSimulationResults = hasResults ( outputs ) ;
64
64
65
- const { trackConflicts, workConflicts } = useConflictsMessages ( t , outputs ) ;
65
+ const { trackConflicts, workConflicts } = useConflictsMessages ( outputs ) ;
66
66
67
67
const simulationReportSheetNumber = generateCodeNumber ( ) ;
68
68
const isSelectedSimulationRetained =
Original file line number Diff line number Diff line change 1
1
import { useEffect , useState } from 'react' ;
2
2
3
- import type { TFunction } from 'i18next' ;
3
+ import { useTranslation } from 'react- i18next' ;
4
4
5
5
import { formatConflicts } from 'applications/stdcm/utils/formatConflicts' ;
6
6
import { hasConflicts } from 'applications/stdcm/utils/simulationOutputUtils' ;
7
7
8
8
import type { StdcmSimulationOutputs } from '../types' ;
9
9
10
- const useConflictsMessages = ( t : TFunction , selectedSimulationOutput ?: StdcmSimulationOutputs ) => {
10
+ const useConflictsMessages = ( selectedSimulationOutput ?: StdcmSimulationOutputs ) => {
11
+ const { t } = useTranslation ( 'stdcm' , { keyPrefix : 'simulation.results' } ) ;
11
12
const [ trackConflicts , setTrackConflicts ] = useState < string [ ] > ( [ ] ) ;
12
13
const [ workConflicts , setWorkConflicts ] = useState < string [ ] > ( [ ] ) ;
13
14
You can’t perform that action at this time.
0 commit comments