chore: add translation for tabbar context menu

pull/48/MERGE
Li Kui 2024-07-05 10:49:39 +08:00
parent fa781633b5
commit 3d45b41a2d
3 changed files with 27 additions and 7 deletions

View File

@ -116,7 +116,7 @@ function useTabs() {
}, },
icon: IcRoundRefresh, icon: IcRoundRefresh,
key: 'reload', key: 'reload',
text: '重新加载', text: $t('preferences.tabbar.context-menu.reload'),
}, },
{ {
disabled: !!affixTab || disabled, disabled: !!affixTab || disabled,
@ -125,7 +125,7 @@ function useTabs() {
}, },
icon: IcRoundClose, icon: IcRoundClose,
key: 'close', key: 'close',
text: '关闭标签页', text: $t('preferences.tabbar.context-menu.close'),
}, },
{ {
handler: async () => { handler: async () => {
@ -136,7 +136,9 @@ function useTabs() {
icon: affixTab ? MdiPinOff : MdiPin, icon: affixTab ? MdiPinOff : MdiPin,
key: 'affix', key: 'affix',
separator: true, separator: true,
text: affixTab ? '取消固定标签页' : '固定标签页', text: affixTab
? $t('preferences.tabbar.context-menu.unpin')
: $t('preferences.tabbar.context-menu.pin'),
}, },
{ {
disabled: closeLeftDisabled, disabled: closeLeftDisabled,
@ -145,7 +147,7 @@ function useTabs() {
}, },
icon: MdiFormatHorizontalAlignLeft, icon: MdiFormatHorizontalAlignLeft,
key: 'close-left', key: 'close-left',
text: '关闭左侧标签页', text: $t('preferences.tabbar.context-menu.close-left'),
}, },
{ {
disabled: closeRightDisabled, disabled: closeRightDisabled,
@ -155,7 +157,7 @@ function useTabs() {
icon: MdiFormatHorizontalAlignRight, icon: MdiFormatHorizontalAlignRight,
key: 'close-right', key: 'close-right',
separator: true, separator: true,
text: '关闭右侧标签页', text: $t('preferences.tabbar.context-menu.close-right'),
}, },
{ {
disabled: closeOtherDisabled, disabled: closeOtherDisabled,
@ -164,7 +166,7 @@ function useTabs() {
}, },
icon: MdiArrowExpandHorizontal, icon: MdiArrowExpandHorizontal,
key: 'close-other', key: 'close-other',
text: '关闭其他标签页', text: $t('preferences.tabbar.context-menu.close-other'),
}, },
{ {
disabled, disabled,
@ -173,7 +175,7 @@ function useTabs() {
}, },
icon: IcRoundMultipleStop, icon: IcRoundMultipleStop,
key: 'close-all', key: 'close-all',
text: '关闭全部标签页', text: $t('preferences.tabbar.context-menu.close-all'),
}, },
// { // {
// icon: 'icon-[material-symbols--back-to-tab-sharp]', // icon: 'icon-[material-symbols--back-to-tab-sharp]',

View File

@ -178,6 +178,15 @@ preferences:
title: Tabbar title: Tabbar
enable: Enable Tab Bar enable: Enable Tab Bar
icon: Display Tabbar Icon 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: navigation-menu:
title: Navigation Menu title: Navigation Menu
style: Navigation menu style style: Navigation menu style

View File

@ -178,6 +178,15 @@ preferences:
title: 标签栏 title: 标签栏
enable: 启用标签栏 enable: 启用标签栏
icon: 显示标签栏图标 icon: 显示标签栏图标
context-menu:
reload: 重新加载
close: 关闭标签页
pin: 固定标签页
unpin: 取消固定标签页
close-left: 关闭左侧标签页
close-right: 关闭右侧标签页
close-other: 关闭其它标签页
close-all: 关闭全部标签页
navigation-menu: navigation-menu:
title: 导航菜单 title: 导航菜单
style: 导航菜单风格 style: 导航菜单风格