photoprism/scripts/gettext-clear-fuzzy.sh
Michael Mayer 2449e19071 Translations: Add gettext-clear-fuzzy.sh script
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-02 12:29:24 +01:00

9 lines
350 B
Bash
Executable file

#!/usr/bin/env bash
echo "Removing fuzzy attribute from backend translations..."
for file in ./assets/locales/**/*.po; do msgattrib --clear-fuzzy -o "${file}" "${file}"; done
echo "Removing fuzzy attribute from frontend translations..."
for file in ./frontend/src/locales/*.po; do msgattrib --clear-fuzzy -o "${file}" "${file}"; done
echo "Done."