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
parent
5a0a15f377
commit
79935c7e2e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue