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 32efdd7 commit c1cbc87Copy full SHA for c1cbc87
src/scripts/crowdin/translations/postLangPRs.ts
@@ -8,10 +8,12 @@ import { processLocale } from "./utils"
8
const locales = i18n.map((lang) => lang.code)
9
10
function postLangPRs() {
11
- const bucketsList = fs.readFileSync(BUCKETS_PATH, "utf-8")
+ const bucketsListData = fs.readFileSync(BUCKETS_PATH, "utf-8")
12
+ const bucketsList = JSON.parse(bucketsListData)
13
if (!bucketsList) throw new Error("Failed to read buckets list.")
14
15
for (const locale of locales) {
16
+ if (!bucketsList[locale]) return
17
processLocale(locale, bucketsList[locale])
18
}
19
0 commit comments