Skip to content

Commit 7955ca1

Browse files
author
Eric Wheeler
committed
fix: prevent false positives in translation linting results
Ensures each translation area independently tracks its missing files, preventing files from being incorrectly reported as missing in multiple areas. This resolves an issue where PRIVACY.md was incorrectly shown as missing in the WEBVIEW area when it should only appear in the DOCS area. Signed-off-by: Eric Wheeler <[email protected]>
1 parent 8cc7d4a commit 7955ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locales/__tests__/lint-translations.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ function formatResults(results: Results, checkTypes: string[], options: LintOpti
264264

265265
// Group errors by type for summary
266266
const errorsByType = new Map<string, string[]>()
267-
const missingByFile = new Map<string, Set<string>>()
268267

269268
for (const [area, areaResults] of Object.entries(results)) {
270269
let areaHasIssues = false
271270
const extraByLocale = new Map<string, Map<string, TranslationIssue[]>>()
272271
let missingCount = 0
272+
const missingByFile = new Map<string, Set<string>>()
273273

274274
for (const [locale, localeResults] of Object.entries(areaResults)) {
275275
let localeMissingCount = 0

0 commit comments

Comments
 (0)