diff --git a/dashboard/src/components/NavigationItems.vue b/dashboard/src/components/NavigationItems.vue index 5fe6b57..2926bfe 100644 --- a/dashboard/src/components/NavigationItems.vue +++ b/dashboard/src/components/NavigationItems.vue @@ -46,7 +46,7 @@ export default { condition: !onboardingComplete, }, { - name: '通知', + name: this.$t('Notifications'), icon: () => h(Notification), route: '/notifications', isActive: routeName === 'Jcloud Notification List', diff --git a/dashboard/src/components/Sidebar.vue b/dashboard/src/components/Sidebar.vue index b8bcce4..4fe81f5 100644 --- a/dashboard/src/components/Sidebar.vue +++ b/dashboard/src/components/Sidebar.vue @@ -58,7 +58,7 @@ - Notifications + {{ $t('Notifications') }} { return getDocResource({ @@ -35,16 +36,16 @@ export default { }; }, route: '/notifications', - title: '通知', + title: t('Notifications'), orderBy: 'creation desc', filterControls() { return [ { type: 'tab', - label: '已读', + label: t('Read'), fieldname: 'read', - options: ['全部', '未读'], - default: '未读', + options: [t('All'), t('Unread')], + default: t('Unread'), }, ]; }, @@ -59,7 +60,7 @@ export default { actions({ listResource: notifications }) { return [ { - label: '全部标记为已读', + label: t('Mark All as Read'), slots: { prefix: icon('check-circle'), }, @@ -71,9 +72,9 @@ export default { { success: () => { notifications.reload(); - return '所有通知已标记为已读'; + return t('All notifications marked as read'); }, - loading: '正在将所有通知标记为已读...', + loading: t('Marking all notifications as read...'), error: (error) => error.messages?.length ? error.messages.join('\n') @@ -86,7 +87,7 @@ export default { }, columns: [ { - label: '标题', + label: t('Title'), fieldname: 'title', width: '20rem', format(value, row) { @@ -98,7 +99,7 @@ export default { return h( Tooltip, { - text: '此通知需要您的关注', + text: t('This notification requires your attention'), }, { default: () => @@ -115,7 +116,7 @@ export default { }, }, { - label: '消息', + label: t('Message'), fieldname: 'message', type: 'Component', width: '40rem', diff --git a/dashboard/src/views/notifications/Notifications.vue b/dashboard/src/views/notifications/Notifications.vue index e16770c..6f6b9d5 100644 --- a/dashboard/src/views/notifications/Notifications.vue +++ b/dashboard/src/views/notifications/Notifications.vue @@ -4,11 +4,11 @@ class="sticky top-0 z-10 flex items-center justify-between border-b bg-white px-5 py-2.5" > @@ -29,13 +29,13 @@