Skip to content

Commit 5efa663

Browse files
author
Clement Hoang
committed
Refactor crowdin download script
1 parent 3801c2b commit 5efa663

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crowdin/download.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ function main() {
1616
process.chdir(SYMLINKED_TRANSLATIONS_PATH);
1717

1818
crowdin
19-
.downloadToPath(DOWNLOADED_TRANSLATIONS_PATH)
20-
.then(() => {
21-
return crowdin.getTranslationStatus();
22-
})
19+
// .export() // Not sure if this should be called in the script since it could be very slow
20+
.then(() => crowdin.downloadToPath(DOWNLOADED_TRANSLATIONS_PATH))
21+
.then(() => crowdin.getTranslationStatus())
2322
.then(locales => {
2423
const usableLocales = locales
2524
.filter(

0 commit comments

Comments
 (0)