File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ async function main() {
24
24
25
25
const progress = response . data . map (
26
26
( { data } ) =>
27
- ( {
28
- languageId : data . languageId ,
29
- words : {
30
- approved : data . words . approved ,
31
- total : data . words . total ,
32
- } ,
33
- } as ProjectProgressData )
27
+ ( {
28
+ languageId : data . languageId ,
29
+ words : {
30
+ approved : data . words . approved ,
31
+ total : data . words . total ,
32
+ } ,
33
+ } as ProjectProgressData )
34
34
)
35
35
36
36
fs . writeFileSync (
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ async function triggerBuild() {
6
6
const projectId = Number ( process . env . CROWDIN_PROJECT_ID ) || 363359
7
7
8
8
try {
9
- await crowdin . translationsApi . buildProject ( projectId )
9
+ await crowdin . translationsApi . buildProject ( projectId , {
10
+ exportApprovedOnly : true ,
11
+ } )
10
12
} catch ( error : unknown ) {
11
13
console . error ( ( error as Error ) . message )
12
14
}
You can’t perform that action at this time.
0 commit comments