@@ -142,38 +142,38 @@ function DashboardPage({
142
142
143
143
const summaryData = [
144
144
{
145
- text : 'OIDC Clients Count' ,
145
+ text : t ( 'dashboard.oidc_clients_count' ) ,
146
146
value : clients ?. length ,
147
147
} ,
148
148
{
149
- text : 'Active Users Count' ,
149
+ text : t ( 'dashboard.active_users_count' ) ,
150
150
value : 1 ,
151
151
} ,
152
152
{
153
- text : 'Token Issued Count' ,
153
+ text : t ( 'dashboard.token_issued_count' ) ,
154
154
value : 150 ,
155
155
} ,
156
156
]
157
157
158
158
const userInfo = [
159
159
{
160
- text : 'Product name' ,
160
+ text : t ( 'dashboard.product_name' ) ,
161
161
value : license ?. productName ,
162
162
} ,
163
163
{
164
- text : 'License Type' ,
164
+ text : t ( 'dashboard.license_type' ) ,
165
165
value : license ?. licenseType ,
166
166
} ,
167
167
{
168
- text : 'Customer Email' ,
168
+ text : t ( 'dashboard.customer_email' ) ,
169
169
value : license ?. customerEmail ,
170
170
} ,
171
171
{
172
- text : 'Company Name' ,
172
+ text : t ( 'dashboard.company_name' ) ,
173
173
value : `${ license ?. customerFirstName } ${ license ?. customerLastName } ` ,
174
174
} ,
175
175
{
176
- text : 'License Status' ,
176
+ text : t ( 'dashboard.license_status' ) ,
177
177
value : license ?. licenseActive ? 'active' : 'inactive' ,
178
178
} ,
179
179
]
@@ -188,7 +188,7 @@ function DashboardPage({
188
188
< div className = { classes . userInfoText } >
189
189
< div className = { classes . statusText } >
190
190
< Box display = "flex" justifyContent = "flex-start" >
191
- < span > OAuth server status </ span >
191
+ < span > { t ( 'dashboard.oauth_server_status' ) } </ span >
192
192
< span >
193
193
< img
194
194
src = { isUp ( serverStatus ) ? CheckIcon : CrossIcon }
@@ -213,7 +213,7 @@ function DashboardPage({
213
213
</ div >
214
214
< div className = { classes . statusText } >
215
215
< Box display = "flex" justifyContent = "flex-start" >
216
- < span > Database status </ span >
216
+ < span > { t ( 'dashboard.database_status' ) } </ span >
217
217
< span >
218
218
< img
219
219
src = { isUp ( dbStatus ) ? CheckIcon : CrossIcon }
@@ -236,7 +236,7 @@ function DashboardPage({
236
236
</ div >
237
237
< div className = { classes . statusText } >
238
238
< Box display = "flex" justifyContent = "flex-start" >
239
- < span > Server status </ span >
239
+ < span > { t ( 'dashboard.server_status' ) } </ span >
240
240
< span >
241
241
< img
242
242
src = { isUp ( serverStatus ) ? CheckIcon : CrossIcon }
@@ -314,7 +314,7 @@ function DashboardPage({
314
314
< Grid container className = "px-40" >
315
315
< Grid item lg = { 4 } md = { 12 } >
316
316
< h3 className = "txt-white" >
317
- Actives Users & Access Token Stats
317
+ { t ( 'dashboard.summary_title' ) }
318
318
</ h3 >
319
319
< div className = "mt-20" >
320
320
{ summaryData . map ( ( data , key ) => (
@@ -342,7 +342,9 @@ function DashboardPage({
342
342
style = { isTabletOrMobile ? { marginLeft : 0 } : { } }
343
343
elevation = { 3 }
344
344
>
345
- < div className = { classes . userInfoTitle } > User Info</ div >
345
+ < div className = { classes . userInfoTitle } >
346
+ { t ( 'dashboard.user_info' ) }
347
+ </ div >
346
348
< div >
347
349
{ userInfo . map ( ( info , key ) => (
348
350
< div className = { classes . userInfoText } key = { key } >
@@ -374,15 +376,15 @@ function DashboardPage({
374
376
</ Grid >
375
377
< Grid container className = { `px-40` } >
376
378
< Grid lg = { 12 } xs = { 12 } >
377
- < h3 className = "text-white" > Access Tokens Graph </ h3 >
379
+ < h3 className = "text-white" > { t ( 'dashboard.access_tokens_graph' ) } </ h3 >
378
380
{ isTabletOrMobile ? (
379
381
< Grid container className = { `${ classes . whiteBg } ` } >
380
382
< Grid
381
383
xs = { 12 }
382
384
item
383
385
style = { isTabletOrMobile ? { marginLeft : 40 } : { marginLeft : 40 , marginBottom : 40 } }
384
386
>
385
- < div > Select a date range </ div >
387
+ < div > { t ( 'dashboard.select_date_range' ) } </ div >
386
388
< DateRange />
387
389
</ Grid >
388
390
< Grid
@@ -410,7 +412,7 @@ function DashboardPage({
410
412
< DashboardChart />
411
413
</ Grid >
412
414
< Grid md = { 3 } xs = { 6 } item >
413
- < div > Select a date range </ div >
415
+ < div > { t ( 'dashboard.select_date_range' ) } </ div >
414
416
< DateRange />
415
417
</ Grid >
416
418
</ Grid >
@@ -436,17 +438,17 @@ function DashboardPage({
436
438
{ isMobile && < StatusCard /> }
437
439
< ul className = "mr-40" >
438
440
< li className = { classes . orange } >
439
- Client credentials access token
441
+ { t ( 'dashboard.client_credentials_access_token' ) }
440
442
</ li >
441
443
</ ul >
442
444
< ul className = "mr-40" >
443
445
< li className = { classes . lightBlue } >
444
- Authorization code access token
446
+ { t ( 'dashboard.authorization_code_access_token' ) }
445
447
</ li >
446
448
</ ul >
447
449
< ul >
448
450
< li className = { classes . lightGreen } >
449
- Authorization code ID token
451
+ { t ( 'dashboard.authorization_code_id_token' ) }
450
452
</ li >
451
453
</ ul >
452
454
</ Grid >
0 commit comments