Skip to content

Commit

Permalink
key separator changed, removed unnecessary trim
Browse files Browse the repository at this point in the history
  • Loading branch information
bniwredyc committed Jan 28, 2025
1 parent 2b7bff5 commit a73bf3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adguardpartner.com/terms-and-conditions.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ By registering your Affiliate Account and by using the Affiliate Website, you re
- (p) You will not violate the copyright and other intellectual property rights of AdGuard or third parties.
- (q) You will not process personal data of users referred by you in violation of applicable personal data protection laws and regulations.
- (r) You are not a person, and you are not acting on behalf of any person or entity to whom provision of the Account or the Websites is prohibited by the export control laws, rules, regulations, restrictions, and national security controls of the European Union, the United States, and other applicable foreign agencies.
<!-- CUT HERE -->
<!-- CROWDIN KEY SPLIT MARKER -->
## 7. Rules of participation in the Affiliate Program

Please read this section carefully before using your Affiliate Account and the Affiliate Website.
Expand Down
6 changes: 3 additions & 3 deletions build-resx.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const basePath = 'crowdin';
const outputFilename = 'docs.en.resx';
const filesToProcessExt = '.html.md'

const KEYS_SEPARATOR = '<!-- CUT HERE -->';
const KEYS_SEPARATOR = '<!-- CROWDIN KEY SPLIT MARKER -->';

const CROWDIN_MAX_STRING_LENGTH = 65535;
const TRANSLATION_RATIO = 1.1;
Expand Down Expand Up @@ -48,7 +48,7 @@ for (const [sourceDir, crowdinDir] of Object.entries(mappings)) {

console.log(`Processing file: ${fullFilePath}`);
const content = fs.readFileSync(fullFilePath, 'utf8');

const baseKey = filePath
.replace(filesToProcessExt, '')
.replaceAll('/', '.');
Expand All @@ -62,7 +62,7 @@ for (const [sourceDir, crowdinDir] of Object.entries(mappings)) {
}

for (let i = 0; i < parts.length; i++) {
const part = parts[i].trim();
const part = parts[i];
if (part.length > MAX_STRING_LENGTH) {
console.error(`Error: Part ${i + 1} of file ${fullFilePath} exceeds maximum length`);
process.exit(1);
Expand Down

0 comments on commit a73bf3c

Please sign in to comment.