mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
a11y: accessibility labels for calls
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"Notification" = "Notification";
|
||||
"a11y_delete" = "Delete";
|
||||
"a11y_hide_password" = "Hide password";
|
||||
"a11y_join_call" = "Join call";
|
||||
"a11y_jump_to_bottom" = "Jump to bottom";
|
||||
"a11y_notifications_mentions_only" = "Mentions only";
|
||||
"a11y_notifications_muted" = "Muted";
|
||||
@@ -9,6 +10,7 @@
|
||||
"a11y_pin_field" = "PIN field";
|
||||
"a11y_play" = "Play";
|
||||
"a11y_poll_end" = "Ended poll";
|
||||
"a11y_profile_picture" = "Profile picture";
|
||||
"a11y_react_with" = "React with %1$@";
|
||||
"a11y_react_with_other_emojis" = "React with other emojis";
|
||||
"a11y_read_receipts_multiple" = "Read by %1$@ and %2$@";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"Notification" = "Notification";
|
||||
"a11y_delete" = "Delete";
|
||||
"a11y_hide_password" = "Hide password";
|
||||
"a11y_join_call" = "Join call";
|
||||
"a11y_jump_to_bottom" = "Jump to bottom";
|
||||
"a11y_notifications_mentions_only" = "Mentions only";
|
||||
"a11y_notifications_muted" = "Muted";
|
||||
@@ -9,6 +10,7 @@
|
||||
"a11y_pin_field" = "PIN field";
|
||||
"a11y_play" = "Play";
|
||||
"a11y_poll_end" = "Ended poll";
|
||||
"a11y_profile_picture" = "Profile picture";
|
||||
"a11y_react_with" = "React with %1$@";
|
||||
"a11y_react_with_other_emojis" = "React with other emojis";
|
||||
"a11y_read_receipts_multiple" = "Read by %1$@ and %2$@";
|
||||
|
||||
@@ -18,6 +18,8 @@ internal enum L10n {
|
||||
}
|
||||
/// Hide password
|
||||
internal static var a11yHidePassword: String { return L10n.tr("Localizable", "a11y_hide_password") }
|
||||
/// Join call
|
||||
internal static var a11yJoinCall: String { return L10n.tr("Localizable", "a11y_join_call") }
|
||||
/// Jump to bottom
|
||||
internal static var a11yJumpToBottom: String { return L10n.tr("Localizable", "a11y_jump_to_bottom") }
|
||||
/// Mentions only
|
||||
@@ -38,6 +40,8 @@ internal enum L10n {
|
||||
internal static var a11yPoll: String { return L10n.tr("Localizable", "a11y_poll") }
|
||||
/// Ended poll
|
||||
internal static var a11yPollEnd: String { return L10n.tr("Localizable", "a11y_poll_end") }
|
||||
/// Profile picture
|
||||
internal static var a11yProfilePicture: String { return L10n.tr("Localizable", "a11y_profile_picture") }
|
||||
/// React with %1$@
|
||||
internal static func a11yReactWith(_ p1: Any) -> String {
|
||||
return L10n.tr("Localizable", "a11y_react_with", String(describing: p1))
|
||||
|
||||
@@ -233,6 +233,7 @@ struct RoomScreen: View {
|
||||
.labelStyle(.titleAndIcon)
|
||||
}
|
||||
.buttonStyle(ElementCallButtonStyle())
|
||||
.accessibilityLabel(L10n.a11yJoinCall)
|
||||
.accessibilityIdentifier(A11yIdentifiers.roomScreen.joinCall)
|
||||
} else {
|
||||
Button {
|
||||
@@ -240,6 +241,7 @@ struct RoomScreen: View {
|
||||
} label: {
|
||||
CompoundIcon(\.videoCallSolid)
|
||||
}
|
||||
.accessibilityLabel(L10n.a11yStartCall)
|
||||
.accessibilityIdentifier(A11yIdentifiers.roomScreen.joinCall)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user