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

This fixes an issue where the locale would be formatted as en-en instead of en-US.
pull/3157/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func newLocalesEmbeddedHandler() (handler fasthttp.RequestHandler) {
if v := ctx.UserValue("variant"); v != nil { if v := ctx.UserValue("variant"); v != nil {
variant = v.(string) variant = v.(string)
locale = fmt.Sprintf("%s-%s", language, locale) locale = fmt.Sprintf("%s-%s", language, variant)
} }
var data []byte var data []byte