File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ public class StringUtils {
7575 /// found in:
7676 /// - EmailAuthView
7777 /// - PasswordPromptView
78+ /// - UpdatePassword
7879 public var passwordInputLabel : String {
7980 return localizedString ( for: " EnterYourPassword " )
8081 }
@@ -124,6 +125,7 @@ public class StringUtils {
124125 /// Confirm password
125126 /// found in:
126127 /// - EmailAuthView
128+ /// - UpdatePassword
127129 public var confirmPasswordInputLabel : String {
128130 return localizedString ( for: " ConfirmPasswordInputLabel " )
129131 }
@@ -193,7 +195,8 @@ public class StringUtils {
193195
194196 /// Account settings - update password button label
195197 /// found in:
196- /// SignedInView
198+ /// - SignedInView
199+ /// - UpdatePassword
197200 public var updatePasswordButtonLabel : String {
198201 return localizedString ( for: " Update password " )
199202 }
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ extension UpdatePasswordView: View {
3535 public var body : some View {
3636 VStack {
3737 LabeledContent {
38- SecureField ( " Password " , text: $password)
38+ SecureField ( authService . string . passwordInputLabel , text: $password)
3939 . focused ( $focus, equals: . password)
4040 . submitLabel ( . go)
4141 } label: {
@@ -48,7 +48,7 @@ extension UpdatePasswordView: View {
4848 Divider ( )
4949
5050 LabeledContent {
51- SecureField ( " Confirm password " , text: $confirmPassword)
51+ SecureField ( authService . string . confirmPasswordInputLabel , text: $confirmPassword)
5252 . focused ( $focus, equals: . confirmPassword)
5353 . submitLabel ( . go)
5454 } label: {
@@ -66,7 +66,7 @@ extension UpdatePasswordView: View {
6666 authService. authView = . authPicker
6767 }
6868 } , label: {
69- Text ( " Update password " )
69+ Text ( authService . string . updatePasswordButtonLabel )
7070 . padding ( . vertical, 8 )
7171 . frame ( maxWidth: . infinity)
7272
You can’t perform that action at this time.
0 commit comments