diff --git a/ElementX/Resources/Localizations/en.lproj/Localizable.strings b/ElementX/Resources/Localizations/en.lproj/Localizable.strings index 7b6cd9dcf..62ea7c1f9 100644 --- a/ElementX/Resources/Localizations/en.lproj/Localizable.strings +++ b/ElementX/Resources/Localizations/en.lproj/Localizable.strings @@ -7,6 +7,9 @@ "a11y_jump_to_bottom" = "Jump to bottom"; "a11y_notifications_mentions_only" = "Mentions only"; "a11y_notifications_muted" = "Muted"; +"a11y_notifications_new_mentions" = "New mentions"; +"a11y_notifications_new_messages" = "New messages"; +"a11y_notifications_ongoing_call" = "Ongoing call"; "a11y_page_n" = "Page %1$d"; "a11y_pause" = "Pause"; "a11y_paused_voice_message" = "Voice message, duration: %1$@, current position: %2$@"; @@ -466,6 +469,8 @@ "screen_decline_and_block_title" = "Decline and block"; "screen_edit_room_address_room_address_section_footer" = "You’ll need a room address in order to make it visible in the directory."; "screen_edit_room_address_title" = "Room address"; +"screen_home_tab_chats" = "Chats"; +"screen_home_tab_spaces" = "Spaces"; "screen_join_room_cancel_knock_action" = "Cancel request"; "screen_join_room_cancel_knock_alert_confirmation" = "Yes, cancel"; "screen_join_room_cancel_knock_alert_description" = "Are you sure that you want to cancel your request to join this room?"; diff --git a/ElementX/Sources/Generated/Strings.swift b/ElementX/Sources/Generated/Strings.swift index 7f7b865d6..ee8877364 100644 --- a/ElementX/Sources/Generated/Strings.swift +++ b/ElementX/Sources/Generated/Strings.swift @@ -32,6 +32,12 @@ internal enum L10n { internal static var a11yNotificationsMentionsOnly: String { return L10n.tr("Localizable", "a11y_notifications_mentions_only") } /// Muted internal static var a11yNotificationsMuted: String { return L10n.tr("Localizable", "a11y_notifications_muted") } + /// New mentions + internal static var a11yNotificationsNewMentions: String { return L10n.tr("Localizable", "a11y_notifications_new_mentions") } + /// New messages + internal static var a11yNotificationsNewMessages: String { return L10n.tr("Localizable", "a11y_notifications_new_messages") } + /// Ongoing call + internal static var a11yNotificationsOngoingCall: String { return L10n.tr("Localizable", "a11y_notifications_ongoing_call") } /// Page %1$d internal static func a11yPageN(_ p1: Int) -> String { return L10n.tr("Localizable", "a11y_page_n", p1) @@ -1482,6 +1488,10 @@ internal enum L10n { internal static var screenEncryptionResetFooter: String { return L10n.tr("Localizable", "screen_encryption_reset_footer") } /// Can't confirm? You’ll need to reset your identity. internal static var screenEncryptionResetTitle: String { return L10n.tr("Localizable", "screen_encryption_reset_title") } + /// Chats + internal static var screenHomeTabChats: String { return L10n.tr("Localizable", "screen_home_tab_chats") } + /// Spaces + internal static var screenHomeTabSpaces: String { return L10n.tr("Localizable", "screen_home_tab_spaces") } /// Can't confirm? internal static var screenIdentityConfirmationCannotConfirm: String { return L10n.tr("Localizable", "screen_identity_confirmation_cannot_confirm") } /// Create a new recovery key diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift index b9751750a..fae2dcf83 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift @@ -108,6 +108,7 @@ struct HomeScreenRoomCell: View { HStack(spacing: 8) { if room.badges.isCallShown { CompoundIcon(\.videoCallSolid, size: .xSmall, relativeTo: .compound.bodySM) + .accessibilityLabel(L10n.a11yNotificationsOngoingCall) } if room.badges.isMuteShown { @@ -122,6 +123,7 @@ struct HomeScreenRoomCell: View { if room.badges.isDotShown { Circle() .frame(width: 12, height: 12) + .accessibilityLabel(L10n.a11yNotificationsNewMessages) } } .foregroundColor(room.isHighlighted ? .compound.iconAccentTertiary : .compound.iconQuaternary) @@ -130,7 +132,7 @@ struct HomeScreenRoomCell: View { private var mentionIcon: some View { CompoundIcon(\.mention, size: .custom(15), relativeTo: .compound.bodyMD) - .accessibilityLabel(L10n.a11yNotificationsMentionsOnly) + .accessibilityLabel(L10n.a11yNotificationsNewMentions) } @ViewBuilder