diff --git a/scripts/update_translations.sh b/scripts/update_translations.sh new file mode 100644 index 0000000..bd4a13a --- /dev/null +++ b/scripts/update_translations.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +pushd node_modules/ng_client + +if [[ -d po && -f po/template.pot ]]; then + for f in po/*.po; do + msgmerge --backup=none -U "$f" po/template.pot + msgattrib --no-obsolete --clear-fuzzy --empty -o "$f" "$f" + done; +fi