fix: frontend translation framework crashes on string errors (#34118)

This commit is contained in:
Maxime Beauchemin
2025-07-14 10:23:18 -07:00
committed by GitHub
parent 68b84acd93
commit 160917eae8
2 changed files with 25 additions and 10 deletions

View File

@@ -22,6 +22,8 @@
set -e
export NODE_NO_WARNINGS=1
for file in $( find ../superset/translations/** -name '*.po' );
do
extension=${file##*.}
@@ -29,7 +31,7 @@ do
if [ $extension == "po" ]
then
echo "po2json --domain superset --format jed1.x $file $filename.json"
po2json --domain superset --format jed1.x $file $filename.json
po2json --domain superset --format jed1.x --fuzzy $file $filename.json
prettier --write $filename.json
fi
done