photoprism/scripts/gettext-merge.sh
Michael Mayer 13d32f3294 Translations: Fuzzy merge of .pot files with .po files #2083
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-31 13:25:02 +01:00

9 lines
337 B
Bash
Executable file

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