File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async function calculateTranslationRate() {
25
25
const files = ( await fs . readdir ( localesDir ) ) . filter ( file => file !== 'en_US.axaml' && file . endsWith ( '.axaml' ) ) ;
26
26
27
27
// Add en_US badge first
28
- badges . push ( `` ) ;
28
+ badges . push ( `[ ](TRANSLATION.md )` ) ;
29
29
30
30
for ( const file of files ) {
31
31
const filePath = path . join ( localesDir , file ) ;
@@ -41,12 +41,12 @@ async function calculateTranslationRate() {
41
41
// Add badges
42
42
const locale = file . replace ( '.axaml' , '' ) . replace ( '_' , '__' ) ;
43
43
const badgeColor = translationRate === 100 ? 'brightgreen' : translationRate >= 75 ? 'yellow' : 'red' ;
44
- badges . push ( ` } %25-${ badgeColor } )` ) ;
44
+ badges . push ( `[  } %25-${ badgeColor } )](TRANSLATION.md )` ) ;
45
45
}
46
46
47
47
console . log ( translationRates . join ( '\n\n' ) ) ;
48
48
49
- await fs . writeFile ( outputFile , translationRates . join ( '\n\n' ) , 'utf8' ) ;
49
+ await fs . writeFile ( outputFile , translationRates . join ( '\n\n' ) + '\n' , 'utf8' ) ;
50
50
51
51
// Update README.md
52
52
let readmeContent = await fs . readFile ( readmeFile , 'utf8' ) ;
Original file line number Diff line number Diff line change 43
43
44
44
## Translation Status
45
45
46
- ![ en_US] ( https://img.shields.io/badge/en__US-100%25-brightgreen ) ![ de__ DE] ( https://img.shields.io/badge/de__DE-98.95%25-yellow ) ![ fr__ FR] ( https://img.shields.io/badge/fr__FR-90.36%25-yellow ) ![ pt__ BR] ( https://img.shields.io/badge/pt__BR-93.52%25-yellow ) ![ ru__ RU] ( https://img.shields.io/badge/ru__RU-98.80%25-yellow ) ![ zh__ CN] ( https://img.shields.io/badge/zh__CN-99.10%25-yellow ) ![ zh__ TW] ( https://img.shields.io/badge/zh__TW-99.70%25-yellow )
46
+ [ ![ en_US] ( https://img.shields.io/badge/en__US-100%25-brightgreen )] ( TRANSLATION.md ) [ ![ de__ DE] ( https://img.shields.io/badge/de__DE-98.95%25-yellow )] ( TRANSLATION.md ) [ ![ fr__ FR] ( https://img.shields.io/badge/fr__FR-90.36%25-yellow )] ( TRANSLATION.md ) [ ![ pt__ BR] ( https://img.shields.io/badge/pt__BR-93.52%25-yellow )] ( TRANSLATION.md ) [ ![ ru__ RU] ( https://img.shields.io/badge/ru__RU-98.80%25-yellow )] ( TRANSLATION.md ) [ ![ zh__ CN] ( https://img.shields.io/badge/zh__CN-99.10%25-yellow )] ( TRANSLATION.md ) [ ![ zh__ TW] ( https://img.shields.io/badge/zh__TW-99.70%25-yellow )] ( TRANSLATION.md )
47
47
48
48
## How to Use
49
49
Original file line number Diff line number Diff line change 180
180
- Text.Preference.AI.AnalyzeDiffPrompt
181
181
- Text.Preference.AI.GenerateSubjectPrompt
182
182
183
- </details >
183
+ </details >
You can’t perform that action at this time.
0 commit comments