Skip to content

Commit

Permalink
changed partial key suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
bniwredyc committed Jan 28, 2025
1 parent a73bf3c commit 29d01f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-resx.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const mappings = {
'adguardpartner.com': 'legal-github-docs-aff',
};

const getKeyPathSuffix = (index) => {
return `.__part__.${index + 1}`;
}

console.log('Starting document processing...');

if (!fs.existsSync(basePath)) {
Expand Down Expand Up @@ -68,7 +72,7 @@ for (const [sourceDir, crowdinDir] of Object.entries(mappings)) {
process.exit(1);
}

const key = `${baseKey}.${i + 1}`;
const key = `${baseKey}${getKeyPathSuffix(i)}`;
console.log(`Generated key: ${key}`);
xmlBuilder = xmlBuilder.ele('data').att('name', key)
.ele('value').dat(part).up()
Expand Down

0 comments on commit 29d01f9

Please sign in to comment.