fix(server): locale format incorrect (#3154)

This fixes an issue where the locale would be formatted as en-en instead of en-US.
This commit is contained in:
James Elliott 2022-04-09 21:38:17 +10:00 committed by GitHub
parent 5a0a15f377
commit 79935c7e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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