photoprism/scripts/gettext-merge.sh
Michael Mayer 74e020d568 Translations: Update gettext-merge.sh script
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-12-13 04:29:32 +01:00

9 lines
No EOL
409 B
Bash
Executable file

#!/usr/bin/env bash
echo "Merging backend translations..."
for file in ./assets/locales/**/*.po; do msgmerge --previous --no-fuzzy-matching --update "${file}" ./assets/locales/messages.pot; done
echo "Merging frontend translations..."
for file in ./frontend/src/locales/*.po; do msgmerge --previous --no-fuzzy-matching --no-wrap --update "${file}" ./frontend/src/locales/translations.pot; done
echo "Done."