Localize notification page title

This commit is contained in:
Andreas Nedbal 2022-07-07 01:32:58 +02:00 committed by Georg Gadinger
parent f53f710452
commit a8362702e3
3 changed files with 3 additions and 1 deletions

View File

@ -7,5 +7,4 @@
:ruby
Notification.for(current_user).update_all(new: false)
provide(:title, generate_title('Notifications'))
parent_layout 'base'

View File

@ -22,3 +22,5 @@
.d-flex.justify-content-center.justify-content-sm-start
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @notifications_last_id } }
= t("voc.load")
- provide(:title, generate_title(t(".title")))

View File

@ -110,6 +110,7 @@ en:
new: "Show all new notifications"
notifications:
index:
title: "Notifications"
none_filtered: "No notifications."
none: "No new notifications."
type: