Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d45b41a
authored
Jul 05, 2024
by
Li Kui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: add translation for tabbar context menu
1 parent
fa781633
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
7 deletions
packages/business/layouts/src/basic/tabbar/use-tabs.ts
packages/locales/src/langs/en-US.yaml
packages/locales/src/langs/zh-CN.yaml
packages/business/layouts/src/basic/tabbar/use-tabs.ts
View file @
3d45b41
...
...
@@ -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]',
...
...
packages/locales/src/langs/en-US.yaml
View file @
3d45b41
...
...
@@ -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
...
...
packages/locales/src/langs/zh-CN.yaml
View file @
3d45b41
...
...
@@ -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
:
导航菜单风格
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment