Skip to content

Commit

Permalink
Merge pull request #141 from AdguardTeam/en-size-limit-2
Browse files Browse the repository at this point in the history
changed partial key suffix
  • Loading branch information
bniwredyc authored Jan 28, 2025
2 parents 8b8407e + bfc8b99 commit 05fafd0
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 getPartialKeySuffix = (partIndex) => {
return `.__part__.${partIndex + 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}${getPartialKeySuffix(i)}`;
console.log(`Generated key: ${key}`);
xmlBuilder = xmlBuilder.ele('data').att('name', key)
.ele('value').dat(part).up()
Expand Down

0 comments on commit 05fafd0

Please sign in to comment.