Skip to content
Snippets Groups Projects
Commit 85e35eec authored by Alexender White's avatar Alexender White Committed by Kateryna Kostiuk
Browse files

accessibility: account creation

Change-Id: Ibf9bcd0ee1fbffeb7478940f39097d8046bc2182
parent e7f57bd5
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,12 @@ internal enum L10n {
internal static let aboutJamiTitle = L10n.tr("Localizable", "accessibility.aboutJamiTitle", fallback: "About Jami")
/// Close
internal static let close = L10n.tr("Localizable", "accessibility.close", fallback: "Close")
/// Enter a username to verify if it's available
internal static let createAccountVerifyUsernamePrompt = L10n.tr("Localizable", "accessibility.createAccountVerifyUsernamePrompt", fallback: "Enter a username to verify if it's available")
/// Profile picture
internal static let profilePicturePicker = L10n.tr("Localizable", "accessibility.profilePicturePicker", fallback: "Profile picture")
/// Double-tap to take a picture or select a picture from the library
internal static let profilePicturePickerHint = L10n.tr("Localizable", "accessibility.profilePicturePickerHint", fallback: "Double-tap to take a picture or select a picture from the library")
/// Add account
internal static let smartListAddAccount = L10n.tr("Localizable", "accessibility.smartListAddAccount", fallback: "Add account")
/// Your current account is %@
......
......@@ -169,6 +169,7 @@ struct CreateAccountView: View {
Text("valid name")
.foregroundColor(.clear)
.font(.footnote)
.accessibilityLabel(L10n.Accessibility.createAccountVerifyUsernamePrompt)
} else {
Text(viewModel.usernameValidationState.message)
.foregroundColor(Color(viewModel.usernameValidationState.textColor))
......
......@@ -68,6 +68,9 @@ struct ProfileView: View {
.foregroundColor(.white)
.padding(8)
}
.accessibilityLabel(L10n.Accessibility.profilePicturePicker)
.accessibilityHint(L10n.Accessibility.profilePicturePickerHint)
})
.actionSheet(isPresented: $showingImagePicker) {
ActionSheet(
......
......@@ -512,3 +512,6 @@
"accessibility.smartListAddAccount" = "Add account";
"accessibility.aboutJamiTitle" = "About Jami";
"accessibility.welcomeToJamiTitle" = "Welcome to Jami";
"accessibility.createAccountVerifyUsernamePrompt" = "Enter a username to verify if it's available";
"accessibility.profilePicturePicker" = "Profile picture";
"accessibility.profilePicturePickerHint" = "Double-tap to take a picture or select a picture from the library";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment