mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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:
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
Block a user