diff --git a/packages/business/layouts/src/basic/tabbar/use-tabs.ts b/packages/business/layouts/src/basic/tabbar/use-tabs.ts index 47035a3d..80bb4a2a 100644 --- a/packages/business/layouts/src/basic/tabbar/use-tabs.ts +++ b/packages/business/layouts/src/basic/tabbar/use-tabs.ts @@ -116,7 +116,7 @@ function useTabs() { }, icon: IcRoundRefresh, key: 'reload', - text: '重新加载', + text: $t('preferences.tabbar.context-menu.reload'), }, { disabled: !!affixTab || disabled, @@ -125,7 +125,7 @@ function useTabs() { }, icon: IcRoundClose, key: 'close', - text: '关闭标签页', + text: $t('preferences.tabbar.context-menu.close'), }, { handler: async () => { @@ -136,7 +136,9 @@ function useTabs() { icon: affixTab ? MdiPinOff : MdiPin, key: 'affix', separator: true, - text: affixTab ? '取消固定标签页' : '固定标签页', + text: affixTab + ? $t('preferences.tabbar.context-menu.unpin') + : $t('preferences.tabbar.context-menu.pin'), }, { disabled: closeLeftDisabled, @@ -145,7 +147,7 @@ function useTabs() { }, icon: MdiFormatHorizontalAlignLeft, key: 'close-left', - text: '关闭左侧标签页', + text: $t('preferences.tabbar.context-menu.close-left'), }, { disabled: closeRightDisabled, @@ -155,7 +157,7 @@ function useTabs() { icon: MdiFormatHorizontalAlignRight, key: 'close-right', separator: true, - text: '关闭右侧标签页', + text: $t('preferences.tabbar.context-menu.close-right'), }, { disabled: closeOtherDisabled, @@ -164,7 +166,7 @@ function useTabs() { }, icon: MdiArrowExpandHorizontal, key: 'close-other', - text: '关闭其他标签页', + text: $t('preferences.tabbar.context-menu.close-other'), }, { disabled, @@ -173,7 +175,7 @@ function useTabs() { }, icon: IcRoundMultipleStop, key: 'close-all', - text: '关闭全部标签页', + text: $t('preferences.tabbar.context-menu.close-all'), }, // { // icon: 'icon-[material-symbols--back-to-tab-sharp]', diff --git a/packages/locales/src/langs/en-US.yaml b/packages/locales/src/langs/en-US.yaml index f8ba9351..1f499a78 100644 --- a/packages/locales/src/langs/en-US.yaml +++ b/packages/locales/src/langs/en-US.yaml @@ -178,6 +178,15 @@ preferences: title: Tabbar enable: Enable Tab Bar icon: Display Tabbar Icon + context-menu: + reload: Reload + close: Close + pin: Pin + unpin: Unpin + close-left: Close Left + close-right: Close Right + close-other: Close Other + close-all: Close All navigation-menu: title: Navigation Menu style: Navigation menu style diff --git a/packages/locales/src/langs/zh-CN.yaml b/packages/locales/src/langs/zh-CN.yaml index a8e31b01..e52e2010 100644 --- a/packages/locales/src/langs/zh-CN.yaml +++ b/packages/locales/src/langs/zh-CN.yaml @@ -178,6 +178,15 @@ preferences: title: 标签栏 enable: 启用标签栏 icon: 显示标签栏图标 + context-menu: + reload: 重新加载 + close: 关闭标签页 + pin: 固定标签页 + unpin: 取消固定标签页 + close-left: 关闭左侧标签页 + close-right: 关闭右侧标签页 + close-other: 关闭其它标签页 + close-all: 关闭全部标签页 navigation-menu: title: 导航菜单 style: 导航菜单风格