fix: add no notifications message to fluent

This commit is contained in:
Ashley Wulber 2023-07-24 16:58:48 -04:00 committed by Ashley Wulber
parent 0476ddd00b
commit 7073d8fc22
2 changed files with 6 additions and 2 deletions

View file

@ -10,3 +10,4 @@ show-more = Show {$more} More
clear-all = Clear All Notifications
do-not-disturb = Do Not Disturb
notification-settings = Notification Settings...
no-notifications = No Notifications

View file

@ -344,8 +344,11 @@ impl Application for Notifications {
let notifications = if self.cards.is_empty() {
row![container(
column![text_icon(&self.icon_name, 40), "No Notifications"]
.align_items(Alignment::Center)
column![
text_icon(&self.icon_name, 40),
text(&fl!("no-notifications"))
]
.align_items(Alignment::Center)
)
.width(Length::Fill)
.align_x(Horizontal::Center)]