-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathstrings.soy
529 lines (458 loc) · 20.8 KB
/
strings.soy
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
/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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
*
* https://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.
*/
// Strings for the FirebaseUI widget.
{namespace firebaseui.auth.soy2.strings autoescape="strict"}
/** Progress dialog message to show while verifying a phone number. */
{template .dialogVerifyingPhoneNumber kind="text"}
{msg desc="Progress dialog message to show while verifying a phone number."}
Verifying...
{/msg}
{/template}
/** Progress dialog message to show while verifying a phone number. */
{template .dialogEmailLinkProcessing kind="text"}
{msg desc="Progress dialog message to show while verifying a phone number."}
Signing in...
{/msg}
{/template}
/**
* Progress dialog message to show that the phone authentication code was verified and the sign in
* attempt is about to complete.
*/
{template .dialogEmailLinkVerified kind="text"}
{msg desc="Progress dialog message to show that the phone authentication code was verified and the
sign in attempt is about to complete."}
Signed in!
{/msg}
{/template}
/** Progress dialog message to show after an SMS verification code is sent. */
{template .dialogCodeSent kind="text"}
{msg desc="Progress dialog message to show during a phone authentication request after the
SMS verification code is sent."}
Code sent!
{/msg}
{/template}
/**
* Progress dialog message to show that the phone authentication code was verified and the sign in
* attempt is about to complete.
*/
{template .dialogCodeVerified kind="text"}
{msg desc="Progress dialog message to show that the phone authentication code was verified and the
sign in attempt is about to complete."}
Verified!
{/msg}
{/template}
/** Error message for no web storage support. */
{template .errorNoWebStorage kind="text"}
{msg desc="Error message to be displayed when the browser does not support web storage
(localStorage and sessionStorage)."}
The browser you are using does not support Web Storage. Please try again in a different browser.
{/msg}
{/template}
/** Error message for invalid email. */
{template .errorInvalidEmail kind="text"}
{msg desc="Error message when the entered email is not a valid email address."}
That email address isn't correct
{/msg}
{/template}
/** Error message for invalid phone number. */
{template .errorInvalidPhoneNumber kind="text"}
{msg desc="Error message to be displayed when trying to authenticate with a phone number and the
recipient phone number is missing or invalid."}
Enter a valid phone number
{/msg}
{/template}
/** Error message for invalid phone verification code. */
{template .errorInvalidConfirmationCode kind="text"}
{msg desc="Error message to be displayed when trying to verify a phone number with an SMS code and
the code has invalid length and/or characters."}
Wrong code. Try again.
{/msg}
{/template}
/** Error message for missing reCAPTCHA response. */
{template .errorMissingRecaptchaResponse kind="text"}
{msg desc="Error message to be displayed if the user did not complete the reCAPTCHA before trying
to send an SMS confirmation code."}
Solve the reCAPTCHA
{/msg}
{/template}
/** Error message for missing email. */
{template .errorMissingEmail kind="text"}
{msg desc="Error message when the user didn't enter an email."}
Enter your email address to continue
{/msg}
{/template}
/** Error message for missing name. */
{template .errorMissingName kind="text"}
{msg desc="Error message when the user didn't enter a name."}
Enter your account name
{/msg}
{/template}
/** Error message for missing password. */
{template .errorMissingPassword kind="text"}
{msg desc="Error message when the user didn't enter a password."}
Enter your password
{/msg}
{/template}
/** Error message for too many account creation. */
{template .errorTooManyRequestsCreateAccount kind="text"}
{msg desc="Error message when too many accounts have been created from the same IP address."}
Too many account requests are coming from your IP address. Try again in a few minutes.
{/msg}
{/template}
/** Error message for too many SMS codes being sent. */
{template .errorTooManyRequestsPhoneNumber kind="text"}
{msg desc="Error message when the user is attempting to send too many SMS messages."}
This phone number has been used too many times
{/msg}
{/template}
/** Error message for password reset code not sent. */
{template .errorSendPasswordReset kind="text"}
{msg desc="Error message to be displayed when the password reset code is not sent to user's
email."}
Unable to send password reset code to specified email
{/msg}
{/template}
/** Error message for unknown error from backend. */
{template .internalError kind="text"}
{msg desc="Generic error message to be displayed when the error returned from the backend is
unknown or does not contain any information."}
Something went wrong. Please try again.
{/msg}
{/template}
/** Error message for expired credential. */
{template .errorExpiredCredential kind="text"}
{msg desc="Error message when the user takes too long to complete the sign in process. The
Google or Facebook credential used to sign in would have expired."}
Your sign-in session has expired. Please try again.
{/msg}
{/template}
/** Error message for anonymous account with email blocking sign-in with non-anonymous account. */
{template .errorAnonymousEmailBlockingSignIn kind="text"}
{msg desc="Error message when the user tries to sign in but the email is used by an anonymous
account. The user must reset their password to recover."}
This email already exists without any means of sign-in. Please reset the password to recover.
{/msg}
{/template}
/** Error message for an unsupported credential. */
{template .errorUnsupportedCredential kind="text"}
{msg desc="Error message when the user tries to sign in with a credential for a identity provider
that is unsupported."}
The selected credential for the authentication provider is not supported!
{/msg}
{/template}
/** Error message for an unsupported country code. */
{template .errorUnsupportedCountryCode kind="text"}
{msg desc="Error message when the user enters an unsupported country code."}
The country code provided is not supported.
{/msg}
{/template}
/** Error message for an email that does not match the current sign-in session. */
{template .errorMismatchingEmail kind="text"}
{msg desc="Error message when the user enters an email that does not match the current session."}
The email provided does not match the current sign-in session.
{/msg}
{/template}
/** Error message for when the user tries to sign in, sign up, or reset password with a
password that is not compliant with the policy.. */
{template .errorMissingPasswordRequirements kind="text"}
{@param passwordNotMeetMinLength: bool} /** Whether to display the
passwordNotMeetMinLength
error. */
{@param minPasswordLength: string} /** The minimum password length. */
{@param passwordNotMeetMaxLength: bool} /** Whether to display the
passwordNotMeetMaxLength
error. */
{@param maxPasswordLength: string} /** The maximum password length. */
{@param passwordNotContainLowercaseLetter: bool} /** Whether to display the
passwordNotContainLowercaseLetter
error. */
{@param passwordNotContainUppercaseLetter: bool} /** Whether to display the
passwordNotContainUppercaseLetter
error. */
{@param passwordNotContainNumericCharacter: bool} /** Whether to display the
passwordNotContainNumericCharacter
error. */
{@param passwordNotContainNonAlphanumericCharacter: bool} /** Whether to display the
passwordNotContainNonAlphanumericCharacter
error. */
{call .error}
{param code: 'auth/password-does-not-meet-requirements' /}
{/call}{sp}
[{sp}
{if $passwordNotMeetMinLength and $minPasswordLength != null}
{call .errorPasswordNotMeetMinLength}
{param minPasswordLength: $minPasswordLength /}
{/call}.{sp}
{/if}
{if $passwordNotMeetMaxLength and $maxPasswordLength != null}
{call .errorPasswordNotMeetMaxLength}
{param maxPasswordLength: $maxPasswordLength /}
{/call}.{sp}
{/if}
{if $passwordNotContainLowercaseLetter}{call .errorPasswordNotContainLowercaseLetter /}.{sp}{/if}
{if $passwordNotContainUppercaseLetter}{call .errorPasswordNotContainUppercaseLetter /}.{sp}{/if}
{if $passwordNotContainNumericCharacter}{call .errorPasswordNotContainNumericCharacter /}.{sp}{/if}
{if $passwordNotContainNonAlphanumericCharacter}
{call .errorPasswordNotContainNonAlphanumericCharacter /}.{sp}
{/if}
]
{/template}
/** Error message for a password that is shorter than the minimum password length. */
{template .errorPasswordNotMeetMinLength kind="text"}
{@param minPasswordLength: string} /** The minimum password length. */
{msg desc="Error message when the user enters a password that is shorter than the minimum password
length."}
Password must contain at least {$minPasswordLength} characters
{/msg}
{/template}
/** Error message for a password that is longer than the maximum password length. */
{template .errorPasswordNotMeetMaxLength kind="text"}
{@param maxPasswordLength: string} /** The maximum password length. */
{msg desc="Error message when the user enters a password that is longer than the maximum password
length."}
Password may contain at most {$maxPasswordLength} characters
{/msg}
{/template}
/** Error message for a password that does not contain a lower case character. */
{template .errorPasswordNotContainLowercaseLetter kind="text"}
{msg desc="Error message when the user enters a password that does not contain a lower case
character."}
Password must contain a lower case character
{/msg}
{/template}
/** Error message for a password that does not contain an upper case character. */
{template .errorPasswordNotContainUppercaseLetter kind="text"}
{msg desc="Error message when the user enters a password that does not contain an upper case
character."}
Password must contain an upper case character
{/msg}
{/template}
/** Error message for a password that does not contain a numeric character. */
{template .errorPasswordNotContainNumericCharacter kind="text"}
{msg desc="Error message when the user enters a password that does not contain a numeric
character."}
Password must contain a numeric character
{/msg}
{/template}
/** Error message for a password that does not contain a non-alphanumeric character. */
{template .errorPasswordNotContainNonAlphanumericCharacter kind="text"}
{msg desc="Error message when the user enters a password that does not contain a non-alphanumeric
character."}
Password must contain a non-alphanumeric character
{/msg}
{/template}
/** Translates an error code from Firebase Auth to a user-displayable string. */
{template .error kind="text"}
{@param? code: string} /** The error code. */
{switch $code}
{case 'auth/email-already-in-use'}
{msg desc="Error message for when the user is trying to sign up with an email already existing
in the database."}
The email address is already used by another account
{/msg}
{case 'auth/requires-recent-login'}
{call .errorLoginAgain_ /}
{case 'auth/too-many-requests'}
{msg desc="Error message for too many failed login attempts in a short period of time.
Recommend that the user wait a few minutes before trying again."}
You have entered an incorrect password too many times. Please try again in a few minutes.
{/msg}
{case 'auth/user-cancelled'}
{msg desc="Error message for when the user refuses to grant permission to the scopes required
to sign in through the identity provider such as Google, Facebook, etc."}
Please authorize the required permissions to sign in to the application
{/msg}
{case 'auth/user-not-found'}
{msg desc="Error message for the user tries to sign in to a nonexistent account or if the user
requests a password reset for a nonexistent account."}
That email address doesn't match an existing account
{/msg}
{case 'auth/user-token-expired'}
{call .errorLoginAgain_ /}
{case 'auth/weak-password'}
{msg desc="Error message for when the user tries to sign in or sign up with a password that is
too short."}
The password must be at least 6 characters long
{/msg}
{case 'auth/wrong-password'}
{msg desc="Error message for incorrect password."}
The email and password you entered don't match
{/msg}
{case 'auth/network-request-failed'}
{msg desc="Error message when a request fails due to a network error (such as timeout,
interrupted connection or unreachable host)."}
A network error has occurred
{/msg}
{case 'auth/invalid-phone-number'}
{call .errorInvalidPhoneNumber /}
{case 'auth/invalid-verification-code'}
{call .errorInvalidConfirmationCode /}
{case 'auth/code-expired'}
{msg desc="Error message when the SMS code sent to confirm a phone number has expired, and the
user must request a new code."}
This code is no longer valid
{/msg}
{case 'auth/expired-action-code'}
{msg desc="Error message when an email code for password reset, sign-in, email verification,
etc. has expired, and the user must request a new code."}
This code has expired.
{/msg}
{case 'auth/invalid-action-code'}
{msg desc="Error message when an email code for password reset, sign-in, email verification,
etc. is invalid."}
The action code is invalid. This can happen if the code is malformed, expired, or has
already been used.
{/msg}
{case 'auth/password-does-not-meet-requirements'}
{msg desc="Error message for when the user tries to sign in, sign up, or reset password with a
password that is not compliant with the policy."}
Missing password requirements:
{/msg}
{default}
{/switch}
{/template}
/** Translates an FirebaseUI Auth error code to a user-displayable string. */
{template .errorAuthUI kind="text"}
{@param code: string} /** The error code. */
{switch $code}
{case 'firebaseui/merge-conflict'}
{msg desc="Error message when an existing anonymous user is unable to upgrade to a
non-anonymous account (Google, Password, etc.) because the associated credential for
the non-anonymous account already exists."}
The current anonymous user failed to upgrade. The non-anonymous credential is already
associated with a different user account.
{/msg}
{default}
{call .internalError /}
{/switch}
{/template}
/** Translates an error code from CIAP to a user-displayable string. */
{template .errorCIAP kind="text"}
{@param? code: string} /** The error code. */
{switch $code}
{case 'invalid-argument'}
{msg desc="Error message for the invalid argument error."}
Client specified an invalid argument.
{/msg}
{case 'invalid-configuration'}
{msg desc="Error message for the invalid configuration error."}
Client specified an invalid project configuration.
{/msg}
{case 'failed-precondition'}
{msg desc="Error message for the failed precondition error."}
Request can not be executed in the current system state.
{/msg}
{case 'out-of-range'}
{msg desc="Error message for the out of range error."}
Client specified an invalid range.
{/msg}
{case 'unauthenticated'}
{msg desc="Error message for the unauthenticated request error."}
Request not authenticated due to missing, invalid, or expired OAuth token.
{/msg}
{case 'permission-denied'}
{msg desc="Error message for the permission denied error."}
Client does not have sufficient permission.
{/msg}
{case 'not-found'}
{msg desc="Error message for the resource not found error."}
Specified resource is not found.
{/msg}
{case 'aborted'}
{msg desc="Error message for the concurrency conflict error."}
Concurrency conflict, such as read-modify-write conflict.
{/msg}
{case 'already-exists'}
{msg desc="Error message for the resource already exists error."}
The resource that a client tried to create already exists.
{/msg}
{case 'resource-exhausted'}
{msg desc="Error message for the resource exhausted error."}
Either out of resource quota or reaching rate limiting.
{/msg}
{case 'cancelled'}
{msg desc="Error message for the request cancelled error."}
Request cancelled by the client.
{/msg}
{case 'data-loss'}
{msg desc="Error message the data loss error."}
Unrecoverable data loss or data corruption.
{/msg}
{case 'unknown'}
{msg desc="Error message for the unknown server error."}
Unknown server error.
{/msg}
{case 'internal'}
{msg desc="Error message for the internal server error."}
Internal server error.
{/msg}
{case 'not-implemented'}
{msg desc="Error message for the not implemented server API error."}
API method not implemented by the server.
{/msg}
{case 'unavailable'}
{msg desc="Error message for the unavailable service error."}
Service unavailable.
{/msg}
{case 'deadline-exceeded'}
{msg desc="Error message for the deadline exceeded error."}
Request deadline exceeded.
{/msg}
{case 'auth/user-disabled'}
{msg desc="Error message for the user disabled error."}
The user account has been disabled by an administrator.
{/msg}
{case 'auth/timeout'}
{msg desc="Error message for the timeout error."}
The operation has timed out.
{/msg}
{case 'auth/too-many-requests'}
{msg desc="Error message for too many failed login attempts in a short period of time."}
We have blocked all requests from this device due to unusual activity. Try again later.
{/msg}
{case 'auth/quota-exceeded'}
{msg desc="Error message for the quota exceeded error."}
The quota for this operation has been exceeded. Try again later.
{/msg}
{case 'auth/network-request-failed'}
{msg desc="Error message for the network request failed error."}
A network error has occurred. Try again later.
{/msg}
{case 'restart-process'}
{msg desc="Instructions for the user to restart the authentication process."}
An issue was encountered when authenticating your request. Please visit the URL that
redirected you to this page again to restart the authentication process.
{/msg}
{case 'no-matching-tenant-for-email'}
{msg desc="Instructions for the user to enter a different email when there is no matching
method of sign-in found for the given email."}
No sign-in provider is available for the given email, please try with a different email.
{/msg}
{/switch}
{/template}
/** Resend countdown. */
{template .resendCountdown kind="text"}
{@param timeRemaining:string} /** The time remaining. */
{msg desc="The time remaining before a phone confirmation code can be sent again, eg
'Resend code in 0:15'."}
Resend code in {$timeRemaining}
{/msg}
{/template}
/** Error message for when user has to log in again. */
{template .errorLoginAgain_ kind="text"}
{msg desc="Error message for when the user has to login again to perform a specific operation
like updating password."}
Please login again to perform this operation
{/msg}
{/template}