Skip to content

Commit

Permalink
fix: translations
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Feb 16, 2024
1 parent 7fc5cde commit c8e269d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/commands/localization/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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 );
}
Expand Down

0 comments on commit c8e269d

Please sign in to comment.