We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 832f987 commit d3343ddCopy full SHA for d3343dd
modules/translation/translation.go
@@ -5,6 +5,8 @@
5
package translation
6
7
import (
8
+ "sort"
9
+
10
"code.gitea.io/gitea/modules/log"
11
"code.gitea.io/gitea/modules/options"
12
"code.gitea.io/gitea/modules/setting"
@@ -72,6 +74,11 @@ func InitLocales() {
72
74
for i, v := range langs {
73
75
allLangs = append(allLangs, LangType{v, names[i]})
76
}
77
78
+ // Sort languages according to their name - needed for the user settings
79
+ sort.Slice(allLangs, func(i, j int) bool {
80
+ return allLangs[i].Name < allLangs[j].Name
81
+ })
82
83
84
// Match matches accept languages
0 commit comments