fix: single _ will be traited as a space by image shields

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-02-06 15:34:12 +08:00
parent e9297096df
commit dbb1df5f8b
No known key found for this signature in database

View file

@ -25,7 +25,7 @@ async function calculateTranslationRate() {
const files = (await fs.readdir(localesDir)).filter(file => file !== 'en_US.axaml' && file.endsWith('.axaml')); const files = (await fs.readdir(localesDir)).filter(file => file !== 'en_US.axaml' && file.endsWith('.axaml'));
// Add en_US badge first // 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) { for (const file of files) {
const filePath = path.join(localesDir, file); const filePath = path.join(localesDir, file);