File tree Expand file tree Collapse file tree 1 file changed +22
-7
lines changed
src/deployments/production/build-scripts Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,29 @@ echo "Merging early access..."
3333mkdir -p translations
3434cd translations
3535
36- # Iterate over each language
37- echo " Fetching translations..."
38- for lang in " es-es" " ja-jp" " pt-br" " zh-cn" " ru-ru" " fr-fr" " ko-kr" " de-de"
39- do
40- translations_repo=" docs-internal.$lang "
41- clone_or_use_cached_repo " $lang " " $translations_repo " " main"
36+ # Temporarily turn off exit-on-error so we can collect all PIDs
37+ set +e
38+
39+ pids=" "
40+ for lang in es-es ja-jp pt-br zh-cn ru-ru fr-fr ko-kr de-de; do
41+ clone_or_use_cached_repo " $lang " " docs-internal.$lang " " main" &
42+ pids=" $pids $! "
43+ done
44+
45+ failures=0
46+ for pid in $pids ; do
47+ wait " $pid " || failures=$(( failures+ 1 ))
4248done
43- echo " Done fetching translations."
49+
50+ # Restore strict mode
51+ set -e
52+
53+ if [ " $failures " -gt 0 ]; then
54+ echo " ⚠️ $failures translation repo(s) failed to fetch."
55+ exit 1
56+ else
57+ echo " ✅ All translations fetched."
58+ fi
4459
4560# Go back to the root of the docs-internal repo
4661cd ..
You can’t perform that action at this time.
0 commit comments