Files
ghostty/.github/scripts/check-translations.sh
Yi-Jyun Pan 15d37c6016 ci: ensure translation check script fails on errors
Add `set -euxo pipefail` to `check-translations.sh` to ensure the CI
fails when contributors do not update the POT file with their changes.
Currently, the CI passes even if the POT file is outdated and the POT
has not been updated for a long time.
2026-02-08 20:29:24 +08:00

17 lines
398 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
old_pot=$(mktemp)
cp po/com.mitchellh.ghostty.pot "$old_pot"
zig build update-translations
# Compare previous POT to current POT
msgcmp "$old_pot" po/com.mitchellh.ghostty.pot --use-untranslated
# Compare all other POs to current POT
for f in po/*.po; do
# Ignore untranslated entries
msgcmp --use-untranslated "$f" po/com.mitchellh.ghostty.pot;
done