ship pre-compiled locale files

This commit is contained in:
tildearrow 2024-05-31 19:55:56 -05:00
parent 3fc5979879
commit a68f572c23
22 changed files with 22 additions and 16 deletions

7
scripts/build-po.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
EXPORT_LANGS=("de" "es" "fr" "fi" "hy" "ko" "nl" "pl" "pt_BR" "ru" "sk" "sv" "th" "tr" "uk")
for i in ${EXPORT_LANGS[@]}; do
echo "compiling $i.po..."
mkdir -p "po/locale/$i/LC_MESSAGES/" && msgfmt "po/$i.po" -o "po/locale/$i/LC_MESSAGES/furnace.mo"
done