@@ -354,11 +354,10 @@ export default new Command()
354354 ) } (${ completeKeys . length } /${ totalKeysInFile } keys)`,
355355 ) ;
356356 } else {
357- const message = `[${ sourceLocale } -> ${ targetLocale } ] ${
358- parseFloat ( completionPercent ) > 50
357+ const message = `[${ sourceLocale } -> ${ targetLocale } ] ${ parseFloat ( completionPercent ) > 50
359358 ? chalk . yellow ( `${ completionPercent } % complete` )
360359 : chalk . red ( `${ completionPercent } % complete` )
361- } (${ completeKeys . length } /${ totalKeysInFile } keys)`;
360+ } (${ completeKeys . length } /${ totalKeysInFile } keys)`;
362361
363362 bucketOra . succeed ( message ) ;
364363
@@ -368,8 +367,7 @@ export default new Command()
368367 ` ${ chalk . red ( `Missing:` ) } ${ missingKeys . length } keys, ~${ wordsToTranslate } words` ,
369368 ) ;
370369 console . log (
371- ` ${ chalk . red ( `Missing:` ) } ${
372- missingKeys . length
370+ ` ${ chalk . red ( `Missing:` ) } ${ missingKeys . length
373371 } keys, ~${ wordsToTranslate } words`,
374372 ) ;
375373 console . log (
@@ -382,8 +380,7 @@ export default new Command()
382380 }
383381 if ( updatedKeys . length > 0 ) {
384382 console . log (
385- ` ${ chalk . yellow ( `Updated:` ) } ${
386- updatedKeys . length
383+ ` ${ chalk . yellow ( `Updated:` ) } ${ updatedKeys . length
387384 } keys that changed in source`,
388385 ) ;
389386 }
@@ -533,13 +530,11 @@ export default new Command()
533530 Object . entries ( fileStats )
534531 . sort ( ( a , b ) => b [ 1 ] . wordCount - a [ 1 ] . wordCount ) // Sort by word count
535532 . forEach ( ( [ path , stats ] ) => {
536- // Skip files with no source keys
537533 if ( stats . sourceKeys === 0 ) return ;
538534
539535 console . log ( chalk . bold ( `\n• ${ path } :` ) ) ;
540536 console . log (
541- ` ${
542- stats . sourceKeys
537+ ` ${ stats . sourceKeys
543538 } source keys, ~${ stats . wordCount . toLocaleString ( ) } source words`,
544539 ) ;
545540
@@ -606,16 +601,14 @@ export default new Command()
606601
607602 if ( missingLanguages . length > 0 ) {
608603 console . log (
609- `• ${ chalk . yellow ( missingLanguages . join ( ", " ) ) } ${
610- missingLanguages . length === 1 ? "has" : "have"
604+ `• ${ chalk . yellow ( missingLanguages . join ( ", " ) ) } ${ missingLanguages . length === 1 ? "has" : "have"
611605 } no translations yet`,
612606 ) ;
613607 }
614608
615609 if ( completeLanguages . length > 0 ) {
616610 console . log (
617- `• ${ chalk . green ( completeLanguages . join ( ", " ) ) } ${
618- completeLanguages . length === 1 ? "is" : "are"
611+ `• ${ chalk . green ( completeLanguages . join ( ", " ) ) } ${ completeLanguages . length === 1 ? "is" : "are"
619612 } completely translated`,
620613 ) ;
621614 }
0 commit comments