1
0
mirror of https://github.com/ventoy/Ventoy.git synced 2025-01-27 14:43:25 -05:00

20 lines
417 B
Bash
Raw Normal View History

#!/bin/bash
VTOY_PATH=$PWD/../
echo "checking languages.json ..."
sh $VTOY_PATH/LANGUAGES/check.sh $VTOY_PATH || exit 1
echo "generating languages.json ..."
echo "var vtoy_language_data = " > languages.js
cat $VTOY_PATH/LANGUAGES/languages.json >> languages.js
echo ";" >> languages.js
dos2unix languages.js
rm -f WebUI/static/js/languages.js
mv languages.js WebUI/static/js/
echo "====== SUCCESS =========="