-
Notifications
You must be signed in to change notification settings - Fork 490
Expand file tree
/
Copy pathStringUtils.swift
More file actions
960 lines (831 loc) · 25.4 KB
/
StringUtils.swift
File metadata and controls
960 lines (831 loc) · 25.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import FirebaseAuth
import SwiftUI
let kKeyNotFound = "Key not found"
public class StringUtils {
let bundle: Bundle
let languageCode: String?
init(bundle: Bundle, languageCode: String? = nil) {
self.bundle = bundle
self.languageCode = languageCode
}
public func localizedString(for key: String) -> String {
// If a specific language code is set, load strings from that language bundle
if let languageCode, let path = bundle.path(forResource: languageCode, ofType: "lproj"),
let localizedBundle = Bundle(path: path) {
return localizedBundle.localizedString(forKey: key, value: nil, table: "Localizable")
}
// Use default localization
let keyLocale = String.LocalizationValue(key)
return String(localized: keyLocale, bundle: bundle)
}
public func localizedErrorMessage(for error: Error) -> String {
let authError = error as NSError
let errorCode = AuthErrorCode(rawValue: authError.code)
switch errorCode {
case .emailAlreadyInUse:
return localizedString(
for: "EmailAlreadyInUseError"
)
case .invalidEmail:
return localizedString(for: "InvalidEmailError")
case .weakPassword:
return localizedString(for: "WeakPasswordError")
case .tooManyRequests:
return localizedString(
for: "SignUpTooManyTimesError"
)
case .wrongPassword:
return localizedString(
for: "WrongPasswordError"
)
case .userNotFound:
return localizedString(
for: "UserNotFoundError"
)
case .userDisabled:
return localizedString(
for: "AccountDisabledError"
)
default:
return error.localizedDescription
}
}
/// Auth Picker title
/// found in:
/// - AuthPickerView
public var authPickerTitle: String {
return localizedString(for: "AuthPickerTitle")
}
/// Email input label
/// found in:
/// - EmailAuthView
/// - PasswordRecoveryView
/// - EmailLinkView
public var emailInputLabel: String {
return localizedString(for: "EnterYourEmail")
}
/// Password button action label
/// found in:
/// - EmailAuthView
public var passwordButtonLabel: String {
return localizedString(for: "ForgotPasswordTitle")
}
/// Password input label
/// found in:
/// - EmailAuthView
/// - PasswordPromptView
/// - UpdatePassword
public var passwordInputLabel: String {
return localizedString(for: "EnterYourPassword")
}
/// Password recovery title
/// found in:
/// - PasswordRecoveryView
public var passwordRecoveryTitle: String {
return localizedString(for: "PasswordRecoveryTitle")
}
/// Password recovery email sent title
/// found in:
/// - PasswordRecoveryView
public var passwordRecoveryEmailSentTitle: String {
return localizedString(for: "PasswordRecoveryEmailSentTitle")
}
/// Password recovery helper message
/// found in:
/// - PasswordRecoveryView
public var passwordRecoveryHelperMessage: String {
return localizedString(for: "PasswordRecoveryMessage")
}
/// Password recovery email sent message
/// found in:
/// - PasswordRecoveryView
public var passwordRecoveryEmailSentMessage: String {
return localizedString(for: "PasswordRecoveryEmailSentMessage")
}
/// Forgot password input label
/// found in:
/// - PasswordRecoveryView
public var forgotPasswordInputLabel: String {
return localizedString(for: "ForgotPassword")
}
/// Signed in title
/// found in:
/// - SignedInView
public var signedInTitle: String {
return localizedString(for: "SignedIn")
}
/// Confirm password
/// found in:
/// - EmailAuthView
/// - UpdatePassword
public var confirmPasswordInputLabel: String {
return localizedString(for: "ConfirmPasswordInputLabel")
}
/// Sign in with email button label or can be used as title
/// found in:
/// - EmailAuthView
public var signInWithEmailButtonLabel: String {
return localizedString(for: "SignInWithEmail")
}
/// Sign up with email button label
/// found in:
/// - EmailAuthView
public var signUpWithEmailButtonLabel: String {
return localizedString(for: "SignUpTitle")
}
/// Sign-in with email link button label to push user to email link view
/// found in:
/// - EmailAuthView
public var signUpWithEmailLinkButtonLabel: String {
return localizedString(for: "EmailLinkSignInLabel")
}
/// send email link sign-in button label
/// found in:
/// - EmailLinkView
public var sendEmailLinkButtonLabel: String {
return localizedString(for: "SendEmailSignInLinkButtonLabel")
}
/// Sign in with email link View title
/// found in:
/// - EmailLinkView
public var signInWithEmailLinkViewTitle: String {
return localizedString(for: "EmailLinkSignInTitle")
}
/// Sign in with email link View message
/// found in:
/// - EmailLinkView
public var signInWithEmailLinkViewMessage: String {
return localizedString(for: "SignInEmailSent")
}
/// Account settings - Delete button label
/// found in:
/// - SignedInView
public var deleteAccountButtonLabel: String {
return localizedString(for: "AS_DeleteAccount")
}
/// Account settings - Email label
/// found in:
/// SignedInView
public var accountSettingsEmailLabel: String {
return localizedString(for: "AS_Email")
}
/// Account settings - sign out button label
/// found in:
/// - SignedInView
public var signOutButtonLabel: String {
return localizedString(for: "AS_SignOut")
}
/// Account settings - update password button label
/// found in:
/// - SignedInView
/// - UpdatePassword
public var updatePasswordButtonLabel: String {
return localizedString(for: "Update password")
}
/// Account settings - send email verification label
/// found in:
/// SignedInView
public var sendEmailVerificationButtonLabel: String {
return localizedString(for: "Verify email address?")
}
/// Account settings - verify email sheet message
/// found in:
/// SignedInView
public var verifyEmailSheetMessage: String {
return localizedString(for: "Verification email sent")
}
/// General string - Back button label
/// found in:
/// - PasswordRecoveryView
/// - EmailLinkView
public var backButtonLabel: String {
return localizedString(for: "Back")
}
/// General string - OK button label
/// found in:
/// - PasswordRecoveryView
/// - EmailLinkView
/// - PasswordPromptView
public var okButtonLabel: String {
return localizedString(for: "OK")
}
/// General string - Cancel button label
/// found in:
/// - PasswordPromptView
public var cancelButtonLabel: String {
return localizedString(for: "Cancel")
}
/// Email provider
/// found in:
/// - AuthPickerView
public var emailLoginFlowLabel: String {
return localizedString(for: "Login")
}
/// Email provider
/// found in:
/// - AuthPickerView
public var emailSignUpFlowLabel: String {
return localizedString(for: "Sign up")
}
/// Email provider
/// found in:
/// - AuthPickerView
public var dontHaveAnAccountYetLabel: String {
return localizedString(for: "Don't have an account yet?")
}
/// Email provider
/// found in:
/// - AuthPickerView
public var alreadyHaveAnAccountLabel: String {
return localizedString(for: "Already have an account?")
}
/// Google provider
/// found in:
/// - SignInWithGoogleButton
public var googleLoginButtonLabel: String {
return localizedString(for: "Sign in with Google")
}
/// Apple provider
/// found in:
/// - SignInWithAppleButton
public var appleLoginButtonLabel: String {
return localizedString(for: "Sign in with Apple")
}
/// Twitter/X provider
/// found in:
/// - SignInWithTwitterButton
public var twitterLoginButtonLabel: String {
return localizedString(for: "Sign in with X")
}
/// Phone provider
/// found in:
/// - PhoneAuthButtonView
public var phoneLoginButtonLabel: String {
return localizedString(for: "Sign in with Phone")
}
/// Facebook provider
/// found in:
/// - SignInWithFacebookButton
public var facebookLoginButtonLabel: String {
return localizedString(for: "Sign in with Facebook")
}
/// Facebook provider
/// found in:
/// - SignInWithFacebookButton
public var facebookLoginCancelledLabel: String {
return localizedString(for: "Facebook login cancelled")
}
/// Facebook provider
/// found in:
/// - SignInWithFacebookButton
public var authorizeUserTrackingLabel: String {
return localizedString(for: "Authorize User Tracking")
}
/// Facebook provider
/// found in:
/// - SignInWithFacebookButton
public var facebookLimitedLoginLabel: String {
return localizedString(for: "Limited Login")
}
/// Facebook provider
/// found in:
/// - SignInWithFacebookButton
public var facebookAuthorizeUserTrackingMessage: String {
return localizedString(for: "For classic Facebook login, please authorize user tracking.")
}
/// Phone provider
/// found in:
/// - PhoneAuthButtonView
public var enterPhoneNumberLabel: String {
return localizedString(for: "Enter phone number")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var phoneSignInTitle: String {
return localizedString(for: "Sign in with Phone")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var enterPhoneNumberPlaceholder: String {
return localizedString(for: "Enter phone number")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var sendCodeButtonLabel: String {
return localizedString(for: "Send Code")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var processingLabel: String {
return localizedString(for: "Processing...")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var enterVerificationCodeTitle: String {
return localizedString(for: "Enter Verification Code")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var verificationCodePlaceholder: String {
return localizedString(for: "Verification Code")
}
/// Phone provider
/// found in:
/// - PhoneAuthView
public var verifyAndSignInButtonLabel: String {
return localizedString(for: "Verify and Sign In")
}
/// Phone provider
/// found in:
/// - PhoneAuthButtonView
public var phoneNumberVerificationCodeLabel: String {
return localizedString(for: "Enter verification code")
}
/// Phone provider
/// found in:
/// - PhoneAuthButtonView
public var smsCodeSendButtonLabel: String {
return localizedString(for: "Send SMS code")
}
/// Phone provider
/// found in:
/// - PhoneAuthButtonView
public var verifyPhoneNumberAndSignInLabel: String {
return localizedString(for: "Verify phone number and sign-in")
}
/// Terms of Service label
/// found in:
/// - PrivacyTOCsView
public var termsOfServiceLabel: String {
return localizedString(for: "TermsOfService")
}
/// Terms of Service message
/// found in:
/// - PrivacyTOCsView
public var termsOfServiceMessage: String {
return localizedString(for: "TermsOfServiceMessage")
}
/// Privacy Policy
/// found in:
/// - PrivacyTOCsView
public var privacyPolicyLabel: String {
return localizedString(for: "PrivacyPolicy")
}
/// Alert Error title
/// found in:
/// PasswordRecoveryView
public var alertErrorTitle: String {
return localizedString(for: "Error")
}
/// Authenticating overlay message
/// found in:
/// - AuthPickerView
public var authenticatingMessage: String {
return localizedString(for: "Authenticating...")
}
/// Two-Factor Authentication
/// found in:
/// - MFAEnrolmentView
/// - MFAManagementView
public var twoFactorAuthenticationLabel: String {
return localizedString(for: "Two-Factor Authentication")
}
/// Set Up Two-Factor Authentication
/// found in:
/// - MFAEnrolmentView
public var setUpTwoFactorAuthenticationLabel: String {
return localizedString(for: "Set Up Two-Factor Authentication")
}
/// Manage Two-Factor Authentication
/// found in:
/// - MFAManagementView
public var manageTwoFactorAuthenticationLabel: String {
return localizedString(for: "Manage Two-Factor Authentication")
}
/// Complete Sign-In
/// found in:
/// - MFAResolutionView
public var completeSignInLabel: String {
return localizedString(for: "Complete Sign-In")
}
/// Complete Setup
/// found in:
/// - MFAEnrolmentView
public var completeSetupLabel: String {
return localizedString(for: "Complete Setup")
}
/// Choose Authentication Method
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var chooseAuthenticationMethodLabel: String {
return localizedString(for: "Choose Authentication Method")
}
/// SMS Authentication
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var smsAuthenticationLabel: String {
return localizedString(for: "SMS Authentication")
}
/// Authenticator App
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var authenticatorAppLabel: String {
return localizedString(for: "Authenticator App")
}
/// Enter Your Phone Number
/// found in:
/// - MFAEnrolmentView
/// - EnterPhoneNumberView
public var enterYourPhoneNumberLabel: String {
return localizedString(for: "Enter Your Phone Number")
}
/// Phone Number
/// found in:
/// - MFAEnrolmentView
/// - EnterPhoneNumberView
public var phoneNumberLabel: String {
return localizedString(for: "Phone Number")
}
/// Send Code
/// found in:
/// - MFAEnrolmentView
/// - EnterPhoneNumberView
public var sendCodeLabel: String {
return localizedString(for: "Send Code")
}
/// Enter Verification Code
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
/// - EnterVerificationCodeView
public var enterVerificationCodeLabel: String {
return localizedString(for: "Enter Verification Code")
}
/// Verification Code
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
/// - EnterVerificationCodeView
public var verificationCodeLabel: String {
return localizedString(for: "Verification Code")
}
/// Scan QR Code
/// found in:
/// - MFAEnrolmentView
public var scanQRCodeLabel: String {
return localizedString(for: "Scan QR Code")
}
/// Manual Entry Key:
/// found in:
/// - MFAEnrolmentView
public var manualEntryKeyLabel: String {
return localizedString(for: "Manual Entry Key:")
}
/// Enter 6-digit code
/// found in:
/// - MFAEnrolmentView
public var enterSixDigitCodeLabel: String {
return localizedString(for: "Enter 6-digit code")
}
/// Scan with your authenticator app or tap to open directly
/// found in:
/// - MFAEnrolmentView
public var scanWithAuthenticatorAppMessage: String {
return localizedString(for: "Scan with your authenticator app or tap to open directly")
}
/// Tap to open in authenticator app
/// found in:
/// - MFAEnrolmentView
public var tapToOpenInAuthenticatorAppLabel: String {
return localizedString(for: "Tap to open in authenticator app")
}
/// Use an authenticator app like Google Authenticator or Authy to generate verification codes.
/// found in:
/// - MFAEnrolmentView
public var authenticatorAppInstructionsMessage: String {
return localizedString(
for: "Use an authenticator app like Google Authenticator or Authy to generate verification codes."
)
}
/// Set up two-factor authentication to add an extra layer of security to your account.
/// found in:
/// - MFAEnrolmentView
public var setUpTwoFactorAuthMessage: String {
return localizedString(
for: "Set up two-factor authentication to add an extra layer of security to your account."
)
}
/// We'll send a verification code to this number
/// found in:
/// - MFAEnrolmentView
public var sendVerificationCodeToNumberMessage: String {
return localizedString(for: "We'll send a verification code to this number")
}
/// We'll send a verification code to your phone
/// found in:
/// - MFAEnrolmentView
public var sendVerificationCodeToPhoneMessage: String {
return localizedString(for: "We'll send a verification code to your phone")
}
/// We'll send a verification code to your phone number each time you sign in.
/// found in:
/// - MFAEnrolmentView
public var sendVerificationCodeEachSignInMessage: String {
return localizedString(
for: "We'll send a verification code to your phone number each time you sign in."
)
}
/// Unable to generate QR Code
/// found in:
/// - MFAEnrolmentView
public var unableToGenerateQRCodeMessage: String {
return localizedString(for: "Unable to generate QR Code")
}
/// Copied to clipboard!
/// found in:
/// - MFAEnrolmentView
public var copiedToClipboardMessage: String {
return localizedString(for: "Copied to clipboard!")
}
/// Multi-Factor Authentication Disabled
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var mfaDisabledLabel: String {
return localizedString(for: "Multi-Factor Authentication Disabled")
}
/// MFA is not enabled in the current configuration. Please contact your administrator.
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var mfaNotEnabledMessage: String {
return localizedString(
for: "MFA is not enabled in the current configuration. Please contact your administrator."
)
}
/// No Authentication Methods Available
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var noAuthenticationMethodsAvailableLabel: String {
return localizedString(for: "No Authentication Methods Available")
}
/// No MFA methods are configured as allowed. Please contact your administrator.
/// found in:
/// - MFAEnrolmentView
/// - MFAResolutionView
public var noMFAMethodsConfiguredMessage: String {
return localizedString(
for: "No MFA methods are configured as allowed. Please contact your administrator."
)
}
/// Complete sign-in with your second factor
/// found in:
/// - MFAResolutionView
public var completeSignInWithSecondFactorMessage: String {
return localizedString(for: "Complete sign-in with your second factor")
}
/// Choose verification method:
/// found in:
/// - MFAResolutionView
public var chooseVerificationMethodLabel: String {
return localizedString(for: "Choose verification method:")
}
/// SMS Verification
/// found in:
/// - MFAResolutionView
public var smsVerificationLabel: String {
return localizedString(for: "SMS Verification")
}
/// We sent a code to %@
/// found in:
/// - MFAResolutionView
public var sentCodeToNumberMessage: String {
return localizedString(for: "We sent a code to %@")
}
/// We'll send a code to ••••••%@
/// found in:
/// - MFAResolutionView
public var sendCodeToMaskedNumberMessage: String {
return localizedString(for: "We'll send a code to ••••••%@")
}
/// Enter the 6-digit code from your authenticator app
/// found in:
/// - MFAResolutionView
public var enterCodeFromAuthenticatorAppMessage: String {
return localizedString(for: "Enter the 6-digit code from your authenticator app")
}
/// Resend Code
/// found in:
/// - MFAResolutionView
/// - EnterVerificationCodeView
public var resendCodeLabel: String {
return localizedString(for: "Resend Code")
}
/// Change number
/// found in:
/// - EnterVerificationCodeView
public var changeNumberLabel: String {
return localizedString(for: "Change number")
}
/// Manage your authentication methods
/// found in:
/// - MFAManagementView
public var manageAuthenticationMethodsMessage: String {
return localizedString(for: "Manage your authentication methods")
}
/// Enrolled Methods
/// found in:
/// - MFAManagementView
public var enrolledMethodsLabel: String {
return localizedString(for: "Enrolled Methods")
}
/// No Authentication Methods
/// found in:
/// - MFAManagementView
public var noAuthenticationMethodsLabel: String {
return localizedString(for: "No Authentication Methods")
}
/// Add an extra layer of security to your account
/// found in:
/// - MFAManagementView
public var addExtraSecurityLayerMessage: String {
return localizedString(for: "Add an extra layer of security to your account")
}
/// Add Another Method
/// found in:
/// - MFAManagementView
public var addAnotherMethodLabel: String {
return localizedString(for: "Add Another Method")
}
/// Get Started
/// found in:
/// - MFAManagementView
public var getStartedLabel: String {
return localizedString(for: "Get Started")
}
/// Remove
/// found in:
/// - MFAManagementView
public var removeLabel: String {
return localizedString(for: "Remove")
}
/// Authentication Method
/// found in:
/// - MFAManagementView
public var authenticationMethodLabel: String {
return localizedString(for: "Authentication Method")
}
/// Enrolled: %@
/// found in:
/// - MFAManagementView
public var enrolledDateLabel: String {
return localizedString(for: "Enrolled: %@")
}
/// SMS: %@
/// found in:
/// - MFAManagementView
public var smsPhoneLabel: String {
return localizedString(for: "SMS: %@")
}
/// Delete Account
/// found in:
/// - SignedInView
public var deleteAccountLabel: String {
return localizedString(for: "Delete Account")
}
/// Delete Account?
/// found in:
/// - SignedInView
public var deleteAccountConfirmationLabel: String {
return localizedString(for: "Delete Account?")
}
/// This action cannot be undone. All your data will be permanently deleted. You may need to
/// reauthenticate to complete this action.
/// found in:
/// - SignedInView
public var deleteAccountWarningMessage: String {
return localizedString(
for: "This action cannot be undone. All your data will be permanently deleted. You may need to reauthenticate to complete this action."
)
}
/// Invalid OAuth Provider error
/// found in:
/// - GenericOAuthButton
public var invalidOAuthProviderError: String {
return localizedString(for: "Invalid OAuth Provider")
}
// MARK: - Field Labels
/// Email field label
/// found in:
/// - EmailAuthView
public var emailFieldLabel: String {
return localizedString(for: "Email")
}
/// Password field label
/// found in:
/// - EmailAuthView
public var passwordFieldLabel: String {
return localizedString(for: "Password")
}
/// Confirm Password field label
/// found in:
/// - EmailAuthView
public var confirmPasswordFieldLabel: String {
return localizedString(for: "Confirm Password")
}
/// Phone Number field label
/// found in:
/// - MFAEnrolmentView
public var phoneNumberFieldLabel: String {
return localizedString(for: "Phone Number")
}
/// Display Name field label
/// found in:
/// - MFAEnrolmentView
public var displayNameFieldLabel: String {
return localizedString(for: "Display Name")
}
/// Verification Code field label
/// found in:
/// - MFAEnrolmentView
public var verificationCodeFieldLabel: String {
return localizedString(for: "Verification Code")
}
/// Send a password recovery link to your email field label
/// found in:
/// - PasswordRecoveryView
public var passwordRecoveryEmailFieldLabel: String {
return localizedString(for: "Send a password recovery link to your email")
}
/// Send a sign-in link to your email field label
/// found in:
/// - EmailLinkView
public var signInLinkEmailFieldLabel: String {
return localizedString(for: "Send a sign-in link to your email")
}
/// Enter phone number prompt
/// found in:
/// - MFAEnrolmentView
public var enterPhoneNumberPrompt: String {
return localizedString(for: "Enter phone number")
}
/// Enter display name for this device prompt
/// found in:
/// - MFAEnrolmentView
public var enterDisplayNameForDevicePrompt: String {
return localizedString(for: "Enter display name for this device")
}
/// Enter display name for this authenticator prompt
/// found in:
/// - MFAEnrolmentView
public var enterDisplayNameForAuthenticatorPrompt: String {
return localizedString(for: "Enter display name for this authenticator")
}
/// Enter code from app prompt
/// found in:
/// - MFAEnrolmentView
public var enterCodeFromAppPrompt: String {
return localizedString(for: "Enter code from app")
}
/// Phone field label
/// found in:
/// - EnterPhoneNumberView
public var phoneFieldLabel: String {
return localizedString(for: "Phone")
}
/// We sent a code to number message
/// found in:
/// - EnterVerificationCodeView
public func sentCodeMessage(phoneNumber: String) -> String {
return String(format: localizedString(for: "We sent a code to %@"), phoneNumber)
}
/// Change number label
/// found in:
/// - EnterVerificationCodeView
public var changeNumberButtonLabel: String {
return localizedString(for: "Change number")
}
}