File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,13 @@ export default {
84
84
this .$localePath
85
85
)
86
86
87
+ const langTitle = config .get (this .$site , ' selectText' , this .$localePath ) || ' other-languages'
88
+
87
89
if (groupOrderConfig) {
88
90
const result = groupOrderConfig .slice ()
89
91
90
- result .unshift (' other-languages' , ' home' )
92
+ result .unshift (langTitle, ' home' )
93
+
91
94
return result
92
95
} else {
93
96
return Object .keys (this .items )
Original file line number Diff line number Diff line change @@ -18,6 +18,17 @@ module.exports = {
18
18
} ,
19
19
} ,
20
20
themeConfig : {
21
+ locales : {
22
+ '/' : {
23
+ selectText : 'Languages' ,
24
+ label : 'English' ,
25
+ } ,
26
+ '/zh/' : {
27
+ selectText : '选择语言' ,
28
+ label : '简体中文' ,
29
+ } ,
30
+ } ,
31
+
21
32
// Assumes GitHub. Can also be a full GitLab url.
22
33
repo : 'sqrthree/vuepress-theme-api' ,
23
34
// Customising the header label
You can’t perform that action at this time.
0 commit comments