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 { ...@@ -33,6 +33,12 @@ internal enum L10n {
internal static let aboutJamiTitle = L10n.tr("Localizable", "accessibility.aboutJamiTitle", fallback: "About Jami") internal static let aboutJamiTitle = L10n.tr("Localizable", "accessibility.aboutJamiTitle", fallback: "About Jami")
/// Close /// Close
internal static let close = L10n.tr("Localizable", "accessibility.close", fallback: "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 /// Add account
internal static let smartListAddAccount = L10n.tr("Localizable", "accessibility.smartListAddAccount", fallback: "Add account") internal static let smartListAddAccount = L10n.tr("Localizable", "accessibility.smartListAddAccount", fallback: "Add account")
/// Your current account is %@ /// Your current account is %@
......
...@@ -169,6 +169,7 @@ struct CreateAccountView: View { ...@@ -169,6 +169,7 @@ struct CreateAccountView: View {
Text("valid name") Text("valid name")
.foregroundColor(.clear) .foregroundColor(.clear)
.font(.footnote) .font(.footnote)
.accessibilityLabel(L10n.Accessibility.createAccountVerifyUsernamePrompt)
} else { } else {
Text(viewModel.usernameValidationState.message) Text(viewModel.usernameValidationState.message)
.foregroundColor(Color(viewModel.usernameValidationState.textColor)) .foregroundColor(Color(viewModel.usernameValidationState.textColor))
......
...@@ -68,6 +68,9 @@ struct ProfileView: View { ...@@ -68,6 +68,9 @@ struct ProfileView: View {
.foregroundColor(.white) .foregroundColor(.white)
.padding(8) .padding(8)
} }
.accessibilityLabel(L10n.Accessibility.profilePicturePicker)
.accessibilityHint(L10n.Accessibility.profilePicturePickerHint)
}) })
.actionSheet(isPresented: $showingImagePicker) { .actionSheet(isPresented: $showingImagePicker) {
ActionSheet( ActionSheet(
......
...@@ -512,3 +512,6 @@ ...@@ -512,3 +512,6 @@
"accessibility.smartListAddAccount" = "Add account"; "accessibility.smartListAddAccount" = "Add account";
"accessibility.aboutJamiTitle" = "About Jami"; "accessibility.aboutJamiTitle" = "About Jami";
"accessibility.welcomeToJamiTitle" = "Welcome to 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