diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index fdb0c52..d2c5792 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -82,3 +82,19 @@ jobs: - name: Check for untranslated messages run: | flutter pub run intl_utils:generate --output-dir=lib/l10n --no-use-deferred-loading + + UNTRANSLATED_FILE=lib/l10n/untranslated_messages.json + if [ ! -f "$UNTRANSLATED_FILE" ]; then + echo "Expected $UNTRANSLATED_FILE to be generated, but it does not exist." + exit 1 + fi + + CONTENT=$(tr -d '[:space:]' < "$UNTRANSLATED_FILE") + if [ "$CONTENT" != "{}" ]; then + echo "Found untranslated messages:" + cat "$UNTRANSLATED_FILE" + exit 1 + fi + + echo "All messages translated." +