-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtranslationTables.ts
163 lines (160 loc) · 7.58 KB
/
translationTables.ts
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
import { ITranslationTable } from "./ITranslationTable";
export type IncludedLanguages = "en-US";
export const translationTables: Record<IncludedLanguages, ITranslationTable> = {
"en-US": {
form: {
actions: {
logIn: {
tabName: "Log in",
usernameless: {
title: "Sign in with app.",
description: {
appLink: "Click the button to open the Auth Armor app.",
qrCode: "Scan the code below with the Auth Armor app."
},
verificationCode: (verificationCode) => [
"Your verification code is ",
verificationCode,
"."
],
retry: "Try again"
},
username: {
title: "Sign in with username or email.",
fields: {
username: {
label: "Username or email address"
}
},
submit: "Continue"
},
methodButtons: {
username: "Sign in with username or email instead",
usernameless: "Sign in with app instead"
},
prompt: (username) => ["Authenticating as ", username, "."]
},
register: {
tabName: "Register",
username: {
title: "Sign up.",
fields: {
username: {
label: "Username or email address"
}
},
submit: "Continue"
},
prompt: (username) => ["Registering as ", username, "."]
}
},
back: "Back",
methods: {
prompt: "Select authentication method.",
authenticator: {
label: "Authenticator app",
description:
"Receive a push notification or scan a QR code using your Auth Armor app."
},
magicLinkEmail: {
label: "Magic link email",
description: "Receive an email with a link to authenticate yourself."
},
passkey: {
label: "Passkey",
description:
"Sign in using your browser’s built-in secure authentication mechanism."
}
},
prompts: {
authenticator: {
logIn: {
title: "Authenticate with authenticator app.",
description: {
qrCode: "We’ve sent a push notification to your authenticator app. If that’s not working, you can scan the code below instead.",
appLink:
"We’ve sent a push notification to your authenticator app. If that’s not working, you can click the button below instead."
}
},
register: {
title: "Register with authenticator app.",
description: {
qrCode: "Scan the code below with your phone. We’ll prompt you to download the Auth Armor app if it isn’t already installed.",
appLink:
"Click the button below. We’ll prompt you to download the Auth Armor app if it isn’t already installed."
}
}
},
magicLinkEmail: {
logIn: {
title: "Authenticate with magic link email.",
description: "We’ve sent you an email with a link to log you in.",
outOfBandCompletionInfo: "You’ve logged in on a different tab or window."
},
register: {
title: "Register with magic link email.",
description: "We’ve sent you an email with a link to register you.",
outOfBandCompletionInfo: "You’ve registered on a different tab or window."
}
},
passkey: {
logIn: {
title: "Authenticate with passkey.",
description:
"Please check your browser or security device for instructions."
},
register: {
title: "Register with passkey.",
description:
"Please check your browser or security device for instructions."
}
},
wait: {
title: "Please wait.",
description: "We’re processing your request."
},
captcha: {
title: "Verification needed.",
description: "We need to make sure you’re not a robot."
}
},
errors: {
usernamelessLogIn: {
declined: "You declined the request.",
network: "A network error occurred. Please check the console.",
unknown: "An unknown error occurred. The console may have further details."
},
usernameLogIn: {
userNotFound: "The requested user does not exist.",
noAvailableMethods: "There are no available methods for the user.",
network: "A network error occurred. Please check the console.",
unknown: "An unknown error occurred. The console may have further details."
},
usernameRegister: {
userAlreadyExists: "This username is already taken.",
noAvailableMethods: "There are no available methods to use.",
network: "A network error occurred. Please check the console.",
unknown: "An unknown error occurred. The console may have further details."
},
authenticator: {
timedOut: "The request timed out.",
declined: "You declined the request.",
network: "A network error occurred. Please check the console.",
unknown: "An unknown error occurred. The console may have further details."
},
magicLinkEmail: {
network: "A network error occurred. Please check the console.",
unknown: "An unknown error occurred. The console may have further details."
},
passkey: {
declined:
"We were unable to process the request. This may have occurred because you declined the prompt.",
network: "A network error occurred. Please check the console.",
unknown: "An unknown error occurred. The console may have further details."
},
recover: "Go back and try again."
}
}
}
};
export const defaultTranslationTable = translationTables["en-US"];