Skip to content

Commit

Permalink
prune
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Dec 3, 2024
1 parent 8f28945 commit 4b97708
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion core/scripts/i18n/collect-strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,8 @@ async function main() {

// Remove any obsolete strings in existing LHL files.
console.log('Checking for out-of-date LHL messages...');
pruneObsoleteLhlMessages();
injectTraceEngineStrings();
pruneObsoleteLhlMessages();

// Report on translation progress.
const progress = countTranslatedMessages();
Expand Down
4 changes: 0 additions & 4 deletions core/scripts/i18n/prune-obsolete-lhl-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ function pruneLocale(goldenLocaleArgumentIds, localeLhl, alreadyLoggedPrunes) {
const remainingMessages = {};

for (const [messageId, {message}] of Object.entries(localeLhl)) {
if (messageId.startsWith('node_modules/@paulirish/trace_engine')) {
continue;
}

const goldenArgumentIds = goldenLocaleArgumentIds[messageId];
if (!goldenArgumentIds) {
logRemoval(alreadyLoggedPrunes, messageId, 'it is no longer found in Lighthouse');
Expand Down

0 comments on commit 4b97708

Please sign in to comment.