From 79935c7e2e1b6e7fb80f27876089d3a915cc7b62 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Sat, 9 Apr 2022 21:38:17 +1000 Subject: [PATCH] fix(server): locale format incorrect (#3154) This fixes an issue where the locale would be formatted as en-en instead of en-US. --- internal/server/asset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/asset.go b/internal/server/asset.go index 9fc277c33..7f106e19a 100644 --- a/internal/server/asset.go +++ b/internal/server/asset.go @@ -48,7 +48,7 @@ func newLocalesEmbeddedHandler() (handler fasthttp.RequestHandler) { if v := ctx.UserValue("variant"); v != nil { variant = v.(string) - locale = fmt.Sprintf("%s-%s", language, locale) + locale = fmt.Sprintf("%s-%s", language, variant) } var data []byte