TeaWeb/shared/generate_translations.sh

9 lines
420 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2020-04-03 15:39:51 +00:00
cd "$(dirname "$0")" || { echo "Failed to enter base directory"; exit 1; }
2020-04-03 15:39:51 +00:00
npm run trgen -- -f "$(pwd)/html/templates.html" -f "$(pwd)/html/templates/modal/newcomer.html" -f "$(pwd)/html/templates/modal/musicmanage.html" -d "$(pwd)/generated/translations_html.json"; _exit_code=$?
if [[ $_exit_code -ne 0 ]]; then
echo "Failed to generate translations file for the template files"
exit 1
fi