Skip to content

Commit 683f08e

Browse files
update verify email
1 parent eed57b8 commit 683f08e

File tree

3 files changed

+46
-21
lines changed

3 files changed

+46
-21
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Strings/Localizable.xcstrings

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"sourceLanguage" : "en",
33
"strings" : {
4+
"%@" : {
5+
6+
},
47
"AccountDisabledError" : {
58
"comment" : "Error message displayed when the account is disabled. Use short/abbreviated translation for 'email' which is less than 15 chars.",
69
"extractionState" : "migrated",
@@ -234,6 +237,9 @@
234237
}
235238
}
236239
}
240+
},
241+
"Confirm password" : {
242+
237243
},
238244
"ConfirmEmail" : {
239245
"comment" : "Title of confirm email label.",
@@ -270,9 +276,6 @@
270276
}
271277
}
272278
}
273-
},
274-
"Delete account" : {
275-
276279
},
277280
"DeleteAccountBody" : {
278281
"comment" : "Alert message body shown to confirm account deletion action.",
@@ -435,9 +438,6 @@
435438
}
436439
}
437440
}
438-
},
439-
"Enter Password" : {
440-
441441
},
442442
"EnterYourEmail" : {
443443
"comment" : "Title for email entry screen, email text field placeholder. Use short/abbreviated translation for 'email' which is less than 15 chars.",
@@ -591,6 +591,9 @@
591591
}
592592
}
593593
}
594+
},
595+
"Password" : {
596+
594597
},
595598
"PasswordRecoveryEmailSentMessage" : {
596599
"comment" : "Message displayed when the email for password recovery has been sent.",
@@ -846,9 +849,6 @@
846849
}
847850
}
848851
}
849-
},
850-
"Sign out" : {
851-
852852
},
853853
"Sign up" : {
854854

@@ -948,9 +948,6 @@
948948
}
949949
}
950950
}
951-
},
952-
"Submit" : {
953-
954951
},
955952
"TermsOfService" : {
956953
"comment" : "Text linked to a web page with the Terms of Service content.",
@@ -1060,6 +1057,17 @@
10601057
}
10611058
}
10621059
},
1060+
"Update password" : {
1061+
"comment" : "Update password button label",
1062+
"localizations" : {
1063+
"en" : {
1064+
"stringUnit" : {
1065+
"state" : "translated",
1066+
"value" : "Update password"
1067+
}
1068+
}
1069+
}
1070+
},
10631071
"UpdateEmailAlertMessage" : {
10641072
"comment" : "Alert action message shown before updating email action. Use short/abbreviated translation for 'email' which is less than 15 chars.",
10651073
"extractionState" : "manual",
@@ -1083,9 +1091,6 @@
10831091
}
10841092
}
10851093
}
1086-
},
1087-
"User: %@" : {
1088-
10891094
},
10901095
"UserNotFoundError" : {
10911096
"comment" : "Error message displayed when there's no account matching the email address. Use short/abbreviated translation for 'email' which is less than 15 chars.",
@@ -1100,7 +1105,15 @@
11001105
}
11011106
},
11021107
"Verify email address?" : {
1103-
1108+
"comment" : "Label for sending email verification to user.",
1109+
"localizations" : {
1110+
"en" : {
1111+
"stringUnit" : {
1112+
"state" : "translated",
1113+
"value" : "Verify email address?"
1114+
}
1115+
}
1116+
}
11041117
},
11051118
"VerifyItsYou" : {
11061119
"comment" : "Alert message title show for re-authorization.",

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Utils/StringUtils.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,20 @@ public class StringUtils {
198198
public var updatePasswordButtonLabel: String {
199199
return localizedString(for: "Update password")
200200
}
201+
202+
/// Account settings - send email verification label
203+
/// found in:
204+
/// VerifyEmailView
205+
public var sendEmailVerificationButtonLabel: String {
206+
return localizedString(for: "Verify email address?")
207+
}
208+
209+
/// Account settings - verify email sheet message
210+
/// found in:
211+
/// VerifyEmailView
212+
public var verifyEmailSheetMessage: String {
213+
return localizedString(for: "Verification email sent")
214+
}
201215

202216

203217
/// General string - Back button label

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/VerifyEmailView.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extension VerifyEmailView: View {
2121
await sendEmailVerification()
2222
}
2323
}) {
24-
Text("Verify email address?")
24+
Text(authService.string.sendEmailVerificationButtonLabel)
2525
.padding(.vertical, 8)
2626
.frame(maxWidth: .infinity)
2727
}
@@ -30,11 +30,9 @@ extension VerifyEmailView: View {
3030
.buttonStyle(.borderedProminent)
3131
}.sheet(isPresented: $showModal) {
3232
VStack {
33-
Text("Instructions")
33+
Text(authService.string.verifyEmailSheetMessage)
3434
.font(.headline)
35-
Text("Please check your email for verification link.")
36-
.padding()
37-
Button("Dismiss") {
35+
Button(authService.string.okButtonLabel) {
3836
showModal = false
3937
}
4038
.padding()

0 commit comments

Comments
 (0)