From c8e269d48f363ab0a62b67d934c42f2133ba253f Mon Sep 17 00:00:00 2001 From: zdm Date: Sat, 17 Feb 2024 00:00:55 +0200 Subject: [PATCH] fix: translations --- lib/commands/localization/update.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/commands/localization/update.js b/lib/commands/localization/update.js index c1105f50..60f367d6 100644 --- a/lib/commands/localization/update.js +++ b/lib/commands/localization/update.js @@ -31,8 +31,12 @@ export default class extends Command { packages = Object.values( idx ); } - for ( const pkg of packages ) { - console.log( `Package: ${ pkg.name }` ); + for ( let n = 0; n < packages.length; n++ ) { + const pkg = packages[ n ]; + + if ( n ) console.log( "" ); + + console.log( `Package: ${ pkg.name }\n` ); const res = await pkg.localization.update(); @@ -41,8 +45,6 @@ export default class extends Command { const localizationStatus = pkg.localization.status(); if ( localizationStatus.data ) { - console.log( "Localization status:\n" ); - for ( const [ poFilePath, isTranslated ] of Object.entries( localizationStatus.data ) ) { console.log( isTranslated ? " OK " : ansi.error( " FUZZY " ), poFilePath ); }