aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/http.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-29 21:43:00 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-29 21:43:00 +0200
commit38230599d68ae097e886222f5c2384fe6dd9b5bc (patch)
treefbb2e051564b128fb19f27ffb19d780c7429d023 /src/http.go
parentb56bc988851f219f50cf29ed52f5775fc30b6cbe (diff)
Switch dummy translations for the real-deal
Diffstat (limited to 'src/http.go')
-rw-r--r--src/http.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http.go b/src/http.go
index 00078c9..362a2cd 100644
--- a/src/http.go
+++ b/src/http.go
@@ -61,8 +61,10 @@ func chain(xs ...middleware) middleware {
func firstHandler(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- ctx := context.WithValue(r.Context(), "td",
- &templateData{Debugp: Debugp})
+ ctx := context.WithValue(r.Context(), "td", &templateData{
+ Debugp: Debugp,
+ Printers: i18n.Printers,
+ })
next.ServeHTTP(w, r.WithContext(ctx))
})
}