From 8610ab842ac1de01aca6b05132deb74e33768014 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 13 Jan 2026 14:05:53 +0100 Subject: [PATCH] ci: Add check for empty German translations in lint task - Check that all German msgstr entries are filled (excluding header) - Use awk to filter out header msgstr "" entries - Fail lint if any empty translations are found --- Justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index b835cf4..c68c473 100644 --- a/Justfile +++ b/Justfile @@ -32,6 +32,8 @@ lint: mix format --check-formatted mix compile --warnings-as-errors mix credo + # Check that all German translations are filled (UI must be in German) + @bash -c 'for file in priv/gettext/de/LC_MESSAGES/*.po; do awk "/^msgid \"\"$/{header=1; next} /^msgid /{header=0} /^msgstr \"\"$/ && !header{print FILENAME\":\"NR\": \" \$0; exit 1}" "$file" || exit 1; done' mix gettext.extract --check-up-to-date audit: @@ -116,4 +118,4 @@ init-prod-secrets: # Start production environment with Docker Compose start-prod: init-prod-secrets - docker compose -f docker-compose.prod.yml up -d \ No newline at end of file + docker compose -f docker-compose.prod.yml up -d