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