Skip to content

Commit e7a4de4

Browse files
committed
debug: json format
1 parent 5564734 commit e7a4de4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/scripts/crowdin/translations/postLangPRs.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import { processLocale } from "./utils"
99
const locales = i18n.map((lang) => lang.code)
1010

1111
function postLangPRs() {
12-
const bucketsListData = fs.readFileSync(BUCKETS_PATH, "utf-8")
13-
const bucketsList: BucketsList = JSON.parse(bucketsListData)
12+
const bucketsListRead = fs.readFileSync(BUCKETS_PATH, "utf-8")
13+
const bucketsList = JSON.parse(bucketsListRead) as BucketsList
14+
1415
if (!bucketsList) throw new Error("Failed to read buckets list.")
1516

1617
for (const locale of locales) {
17-
if (!bucketsList[locale]) return
18+
if (!bucketsList[locale]) continue
1819
processLocale(locale, bucketsList[locale])
1920
}
2021
}

0 commit comments

Comments
 (0)