summaryrefslogtreecommitdiff
path: root/.github/scripts/check-translations.sh
blob: 18d5cd67b4a03f74e79c06560979a67b2e4f2e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

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