Skip to content

Commit 9fe8a92

Browse files
committed
feat: enable exportApprovedOnly
1 parent f6d36d8 commit 9fe8a92

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/scripts/crowdin/getTranslationProgress.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ async function main() {
2424

2525
const progress = response.data.map(
2626
({ 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)
3434
)
3535

3636
fs.writeFileSync(

src/scripts/crowdin/translations/triggerBuild.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ async function triggerBuild() {
66
const projectId = Number(process.env.CROWDIN_PROJECT_ID) || 363359
77

88
try {
9-
await crowdin.translationsApi.buildProject(projectId)
9+
await crowdin.translationsApi.buildProject(projectId, {
10+
exportApprovedOnly: true,
11+
})
1012
} catch (error: unknown) {
1113
console.error((error as Error).message)
1214
}

0 commit comments

Comments
 (0)