diff --git a/tools/i18n-scanner/report.js b/tools/i18n-scanner/report.js index 657fdbe0..ed9b9099 100644 --- a/tools/i18n-scanner/report.js +++ b/tools/i18n-scanner/report.js @@ -76,11 +76,16 @@ function parseTomlKeys(filePath) { continue; } - const key = line.slice(0, eqIndex).trim(); + let key = line.slice(0, eqIndex).trim(); if (!key) { continue; } + // Strip quotes if present + if (key.startsWith('"') && key.endsWith('"')) { + key = key.slice(1, -1); + } + const fullKey = [...currentSection, key].join('.'); keys.add(fullKey); }