From dbb1df5f8bca9898fc9387360844756ed870e39c Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 6 Feb 2025 15:34:12 +0800 Subject: [PATCH] fix: single `_` will be traited as a space by image shields Signed-off-by: leo --- build/scripts/localization-check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scripts/localization-check.js b/build/scripts/localization-check.js index 76b5036b..ed89a5e8 100644 --- a/build/scripts/localization-check.js +++ b/build/scripts/localization-check.js @@ -25,7 +25,7 @@ async function calculateTranslationRate() { const files = (await fs.readdir(localesDir)).filter(file => file !== 'en_US.axaml' && file.endsWith('.axaml')); // Add en_US badge first - badges.push(`[![en_US](https://img.shields.io/badge/en_US-%E2%88%9A-brightgreen)](TRANSLATION.md)`); + badges.push(`[![en_US](https://img.shields.io/badge/en__US-%E2%88%9A-brightgreen)](TRANSLATION.md)`); for (const file of files) { const filePath = path.join(localesDir, file);