File tree Expand file tree Collapse file tree 6 files changed +26
-1
lines changed Expand file tree Collapse file tree 6 files changed +26
-1
lines c
8000
hanged Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ const { isFullscreen, toggle } = useFullscreen();
40
40
<div class =" h-full flex-y-center justify-end" >
41
41
<GlobalSearch />
42
42
<FullScreen v-if =" !appStore.isMobile" :full =" isFullscreen" @click =" toggle" />
43
- <LangSwitch :lang =" appStore.locale" :lang-options =" appStore.localeOptions" @change-lang =" appStore.changeLocale" />
43
+ <LangSwitch
44
+ v-if =" themeStore.header.multilingual.visible"
45
+ :lang =" appStore.locale"
46
+ :lang-options =" appStore.localeOptions"
47
+ @change-lang =" appStore.changeLocale"
48
+ />
44
49
<ThemeSchemaSwitch
45
50
:theme-schema =" themeStore.themeScheme"
46
51
:is-dark =" themeStore.darkMode"
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ const isWrapperScrollMode = computed(() => themeStore.layout.scrollMode === 'wra
127
127
placeholder =" SoybeanAdmin"
128
128
/>
129
129
</SettingItem >
130
+ <SettingItem key =" 9" :label =" $t('theme.header.multilingual.visible')" >
131
+ <NSwitch v-model:value =" themeStore.header.multilingual.visible" />
132
+ </SettingItem >
130
133
</TransitionGroup >
131
134
</template >
132
135
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ const local: App.I18n.Schema = {
109
109
breadcrumb : {
110
110
visible : 'Breadcrumb Visible' ,
111
111
showIcon : 'Breadcrumb Icon Visible'
112
+ } ,
113
+ multilingual : {
114
+ visible : 'Display multilingual button'
112
115
}
113
116
} ,
114
117
tab : {
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ const local: App.I18n.Schema = {
109
109
breadcrumb : {
110
110
visible : '显示面包屑' ,
111
111
showIcon : '显示面包屑图标'
112
+ } ,
113
+ multilingual : {
114
+ visible : '显示多语言按钮'
112
115
}
113
116
} ,
114
117
tab : {
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ export const themeSettings: App.Theme.ThemeSetting = {
27
27
breadcrumb : {
28
28
visible : true ,
29
29
showIcon : true
30
+ } ,
31
+ multilingual : {
32
+ visible : true
30
33
}
31
34
} ,
32
35
tab : {
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ declare namespace App {
53
53
/** Whether to show the breadcrumb icon */
54
54
showIcon : boolean ;
55
55
} ;
56
+ /** Multilingual */
57
+ multilingual : {
58
+ /** Whether to show the multilingual */
59
+ visible : boolean ;
60
+ } ;
56
61
} ;
57
62
/** Tab */
58
63
tab : {
@@ -363,6 +368,9 @@ declare namespace App {
363
368
visible : string ;
364
369
showIcon : string ;
365
370
} ;
371
+ multilingual : {
372
+ visible : string ;
373
+ } ;
366
374
} ;
367
375
tab : {
368
376
visible : string ;
You can’t perform that action at this time.
0 commit comments