mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
fix(i18n): sync mismatched keys between en.js and zh.js (#3534)
Some checks are pending
E2E Tests / E2E Test - macOS (push) Waiting to run
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
Some checks are pending
E2E Tests / E2E Test - macOS (push) Waiting to run
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
* fix(i18n): sync mismatched keys between en.js and zh.js (#3503) Add 4 keys missing from en.js that are actively used in source code, add 5 missing Chinese translations to zh.js, integrate check-i18n into CI to prevent future drift, and skip JSON file write in CI to avoid dirtying the working tree. --- Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
d36f12c4c4
commit
4e0a37549d
5 changed files with 202 additions and 18 deletions
|
|
@ -429,15 +429,17 @@ async function main() {
|
|||
console.log(` - "${key}"`),
|
||||
);
|
||||
|
||||
// Save these keys to a JSON file
|
||||
const outputPath = path.join(
|
||||
__dirname,
|
||||
'unused-keys-only-in-locales.json',
|
||||
);
|
||||
saveKeysOnlyInLocalesToJson(
|
||||
result.stats.unusedKeysOnlyInLocales,
|
||||
outputPath,
|
||||
);
|
||||
// Save these keys to a JSON file (skip in CI to avoid dirtying the working tree)
|
||||
if (!process.env['CI']) {
|
||||
const outputPath = path.join(
|
||||
__dirname,
|
||||
'unused-keys-only-in-locales.json',
|
||||
);
|
||||
saveKeysOnlyInLocalesToJson(
|
||||
result.stats.unusedKeysOnlyInLocales,
|
||||
outputPath,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
console.log();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue