mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat: 添加App翻译
This commit is contained in:
@@ -19,8 +19,13 @@ export function translateTitle(key: string): string {
|
||||
Tasks: $gettext('Tasks'),
|
||||
Website: $gettext('Website'),
|
||||
// 应用标题
|
||||
'Fail2ban Manager': $gettext('Fail2ban Manager'),
|
||||
'S3fs Manager': $gettext('S3fs Manager'),
|
||||
'Supervisor Manager': $gettext('Supervisor Manager'),
|
||||
'Rsync Manager': $gettext('Rsync Manager'),
|
||||
'Frp Manager': $gettext('Frp Manager'),
|
||||
'Rat Benchmark': $gettext('Rat Benchmark'),
|
||||
Toolbox: $gettext('Toolbox')
|
||||
'System Toolbox': $gettext('System Toolbox')
|
||||
}
|
||||
|
||||
return titles[key] || key
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
path: '',
|
||||
component: () => import('./IndexView.vue'),
|
||||
meta: {
|
||||
title: 'Fail2ban',
|
||||
title: 'Fail2ban Manager',
|
||||
icon: 'mdi:wall-fire',
|
||||
role: ['admin'],
|
||||
requireAuth: true
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
path: '',
|
||||
component: () => import('./IndexView.vue'),
|
||||
meta: {
|
||||
title: 'Frp',
|
||||
title: 'Frp Manager',
|
||||
icon: 'icon-park-outline:connection-box',
|
||||
role: ['admin'],
|
||||
requireAuth: true
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
path: '',
|
||||
component: () => import('./IndexView.vue'),
|
||||
meta: {
|
||||
title: 'Rsync',
|
||||
title: 'Rsync Manager',
|
||||
icon: 'file-icons:rsync',
|
||||
role: ['admin'],
|
||||
requireAuth: true
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
path: '',
|
||||
component: () => import('./IndexView.vue'),
|
||||
meta: {
|
||||
title: 'S3fs',
|
||||
title: 'S3fs Manager',
|
||||
icon: 'logos:aws',
|
||||
role: ['admin'],
|
||||
requireAuth: true
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
path: '',
|
||||
component: () => import('./IndexView.vue'),
|
||||
meta: {
|
||||
title: 'Supervisor',
|
||||
title: 'Supervisor Manager',
|
||||
icon: 'mdi:monitor-dashboard',
|
||||
role: ['admin'],
|
||||
requireAuth: true
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
path: '',
|
||||
component: () => import('./IndexView.vue'),
|
||||
meta: {
|
||||
title: 'Toolbox',
|
||||
title: 'System Toolbox',
|
||||
icon: 'mdi:tools',
|
||||
role: ['admin'],
|
||||
requireAuth: true
|
||||
|
||||
Reference in New Issue
Block a user