From 38230599d68ae097e886222f5c2384fe6dd9b5bc Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 29 Jul 2025 21:43:00 +0200 Subject: Switch dummy translations for the real-deal --- src/http.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/http.go') 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)) }) } -- cgit v1.2.3