File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -405,10 +405,20 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
405405 if ( menuItem . children ) {
406406 menuItem . children . forEach ( processItem ) ;
407407 }
408+ if ( menuItem . pageLabel ) {
409+ translateRoutines . push (
410+ ( async ( ) => {
411+ menuItem . pageLabel = await tr ( menuItem . pageLabel , `UserMenu.${ menuItem . pageLabel } ` ) ;
412+ } ) ( )
413+ ) ;
414+ }
408415 }
409416 newMenu . forEach ( ( menuItem ) => {
410417 processItem ( menuItem ) ;
411418 } ) ;
419+ this . adminforth . config . auth . userMenuSettingsPages . forEach ( ( page ) => {
420+ processItem ( page ) ;
421+ } ) ;
412422 await Promise . all ( translateRoutines ) ;
413423
414424 // strip all backendOnly fields or not described in adminForth fields from dbUser
Original file line number Diff line number Diff line change 11<template >
22 <div class =" mt-20 h-full w-full" :class =" { 'hidden': initialTabSet === false }" >
33 <div v-if =" !coreStore?.config?.settingPages || coreStore?.config?.settingPages.length === 0" >
4- <p >No setting pages configured or still loading...</p >
4+ <p >{{ $t(' No setting pages configured or still loading...') }} </p >
55 </div >
66 <VerticalTabs v-else ref =" VerticalTabsRef" v-model:active-tab =" activeTab" @update:active-tab =" setURL({slug: $event, pageLabel: ''})" >
77 <template v-for =" (c ,i ) in coreStore ?.config ?.settingPages " :key =" ` tab:${settingPageSlotName (c ,i )} ` " v-slot :[' tab:' + c .slug ]>
You can’t perform that action at this time.
0 commit comments