summaryrefslogtreecommitdiff
path: root/Taskfile.yml
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-05-12 17:31:50 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-05-12 17:31:50 +0200
commit0dd14393d296d9a0915a978f83ac2057b7e4d711 (patch)
treeb721ce867c9b860ff54776aae59c350f149098fe /Taskfile.yml
parent3e09f3b6dc1484820658d07187096cda541fed46 (diff)
ki18n: add gettext CI check for missing translation keys
gettext now exits 1 when any key extracted from templates is absent from a locale file. Added as a task and wired into the check task. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Taskfile.yml')
-rw-r--r--Taskfile.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Taskfile.yml b/Taskfile.yml
index 0ba1f5f..7033429 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -6,6 +6,10 @@ tasks:
cmds:
- go tool templ generate
+ gettext:
+ cmds:
+ - go run github.com/martinlehoux/kagamigo/ki18n/cmd/gettext
+
check:
cmds:
- gofmt -d -e -s .
@@ -17,6 +21,7 @@ tasks:
- go test -race ./...
- go tool revive
- go mod tidy
+ - task gettext
tools:
cmds: