diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-29 21:43:00 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-29 21:43:00 +0200 |
commit | 38230599d68ae097e886222f5c2384fe6dd9b5bc (patch) | |
tree | fbb2e051564b128fb19f27ffb19d780c7429d023 /src/http.go | |
parent | b56bc988851f219f50cf29ed52f5775fc30b6cbe (diff) |
Switch dummy translations for the real-deal
Diffstat (limited to 'src/http.go')
-rw-r--r-- | src/http.go | 6 |
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)) }) } |