mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
fix language settings loading
This commit is contained in:
parent
27ac0bf43e
commit
882a3467db
3
lang.go
3
lang.go
@ -19,6 +19,7 @@ func (ls *adminLangs) getOptions(chosen string) (string, []string) {
|
||||
i := 0
|
||||
for _, lang := range *ls {
|
||||
opts[i] = lang.Meta.Name
|
||||
i++
|
||||
}
|
||||
return chosenLang, opts
|
||||
}
|
||||
@ -39,6 +40,7 @@ func (ls *formLangs) getOptions(chosen string) (string, []string) {
|
||||
i := 0
|
||||
for _, lang := range *ls {
|
||||
opts[i] = lang.Meta.Name
|
||||
i++
|
||||
}
|
||||
return chosenLang, opts
|
||||
}
|
||||
@ -58,6 +60,7 @@ func (ls *emailLangs) getOptions(chosen string) (string, []string) {
|
||||
i := 0
|
||||
for _, lang := range *ls {
|
||||
opts[i] = lang.Meta.Name
|
||||
i++
|
||||
}
|
||||
return chosenLang, opts
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user