We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5564734 commit e7a4de4Copy full SHA for e7a4de4
src/scripts/crowdin/translations/postLangPRs.ts
@@ -9,12 +9,13 @@ import { processLocale } from "./utils"
9
const locales = i18n.map((lang) => lang.code)
10
11
function postLangPRs() {
12
- const bucketsListData = fs.readFileSync(BUCKETS_PATH, "utf-8")
13
- const bucketsList: BucketsList = JSON.parse(bucketsListData)
+ const bucketsListRead = fs.readFileSync(BUCKETS_PATH, "utf-8")
+ const bucketsList = JSON.parse(bucketsListRead) as BucketsList
14
+
15
if (!bucketsList) throw new Error("Failed to read buckets list.")
16
17
for (const locale of locales) {
- if (!bucketsList[locale]) return
18
+ if (!bucketsList[locale]) continue
19
processLocale(locale, bucketsList[locale])
20
}
21
0 commit comments