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 changed Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ const { isFullscreen, toggle } = useFullscreen();
4040 <div class =" h-full flex-y-center justify-end" >
4141 <GlobalSearch />
4242 <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+ />
4449 <ThemeSchemaSwitch
4550 :theme-schema =" themeStore.themeScheme"
4651 :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
127127 placeholder =" SoybeanAdmin"
128128 />
129129 </SettingItem >
130+ <SettingItem key =" 9" :label =" $t('theme.header.multilingual.visible')" >
131+ <NSwitch v-model:value =" themeStore.header.multilingual.visible" />
132+ </SettingItem >
130133 </TransitionGroup >
131134</template >
132135
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ const local: App.I18n.Schema = {
109109 breadcrumb : {
110110 visible : 'Breadcrumb Visible' ,
111111 showIcon : 'Breadcrumb Icon Visible'
112+ } ,
113+ multilingual : {
114+ visible : 'Display multilingual button'
112115 }
113116 } ,
114117 tab : {
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ const local: App.I18n.Schema = {
109109 breadcrumb : {
110110 visible : '显示面包屑' ,
111111 showIcon : '显示面包屑图标'
112+ } ,
113+ multilingual : {
114+ visible : '显示多语言按钮'
112115 }
113116 } ,
114117 tab : {
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ export const themeSettings: App.Theme.ThemeSetting = {
2727 breadcrumb : {
2828 visible : true ,
2929 showIcon : true
30+ } ,
31+ multilingual : {
32+ visible : true
3033 }
3134 } ,
3235 tab : {
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ declare namespace App {
5353 /** Whether to show the breadcrumb icon */
5454 showIcon : boolean ;
5555 } ;
56+ /** Multilingual */
57+ multilingual : {
58+ /** Whether to show the multilingual */
59+ visible : boolean ;
60+ } ;
5661 } ;
5762 /** Tab */
5863 tab : {
@@ -363,6 +368,9 @@ declare namespace App {
363368 visible : string ;
364369 showIcon : string ;
365370 } ;
371+ multilingual : {
372+ visible : string ;
373+ } ;
366374 } ;
367375 tab : {
368376 visible : string ;
You can’t perform that action at this time.
0 commit comments