File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -314,9 +314,12 @@ namespace ts {
314
314
/**
315
315
* Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
316
316
*/
317
- export function createBuilderStatusReporter ( system : System , pretty ?: boolean ) : DiagnosticReporter {
317
+ export function createBuilderStatusReporter ( system : System , pretty ?: boolean ) : DiagnosticReporter ;
318
+ /*@internal */
319
+ export function createBuilderStatusReporter ( system : System , pretty ?: boolean , locale ?: string ) : DiagnosticReporter ; // eslint-disable-line @typescript-eslint/unified-signatures
320
+ export function createBuilderStatusReporter ( system : System , pretty ?: boolean , locale ?: string ) : DiagnosticReporter {
318
321
return diagnostic => {
319
- let output = pretty ? `[${ formatColorAndReset ( ( system . now ? system . now ( ) : new Date ( ) ) . toLocaleTimeString ( ) , ForegroundColorEscapeSequences . Grey ) } ] ` : `${ ( system . now ? system . now ( ) : new Date ( ) ) . toLocaleTimeString ( ) } - ` ;
322
+ let output = pretty ? `[${ formatColorAndReset ( ( system . now ? system . now ( ) : new Date ( ) ) . toLocaleTimeString ( locale ) , ForegroundColorEscapeSequences . Grey ) } ] ` : `${ ( system . now ? system . now ( ) : new Date ( ) ) . toLocaleTimeString ( locale ) } - ` ;
320
323
output += `${ flattenDiagnosticMessageText ( diagnostic . messageText , system . newLine ) } ${ system . newLine + system . newLine } ` ;
321
324
system . write ( output ) ;
322
325
} ;
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ namespace ts {
130
130
sys ,
131
131
/*createProgram*/ undefined ,
132
132
reportDiagnostic ,
133
- createBuilderStatusReporter ( sys , buildOptions . pretty ) ,
133
+ createBuilderStatusReporter ( sys , buildOptions . pretty , "en-US" ) ,
134
134
createReportErrorSummary ( sys , buildOptions )
135
135
) ;
136
136
fakes . patchSolutionBuilderHost ( buildHost , sys ) ;
You can’t perform that action at this time.
0 commit comments