@@ -239,7 +239,7 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
239239 < StyleProfileContent >
240240 < Row gutter = { [ 24 , 24 ] } style = { { display : 'flex' , alignItems : 'end' } } >
241241 < Col lg = { 4 } >
242- < StyleAvatar src = { < img src = { user . avatarUrl } alt = "avatar" /> } shape = "square" size = { 120 } />
242+ < StyleAvatar src = { < img src = { user . avatarUrl ?? `https://eu.ui-avatars.com/api/?name= ${ user . username } &size=250` } alt = "avatar" /> } shape = "square" size = { 120 } />
243243 </ Col >
244244 < Col lg = { 20 } >
245245 < Space style = { { paddingLeft : "80px" } } >
@@ -265,11 +265,12 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
265265 beforeUpload = { beforeImgUpload }
266266 withCredentials
267267 >
268- < Button style = { { marginTop : "8px" } } > Change Avatar</ Button >
268+ < Button style = { { marginTop : "8px" } } >
269+ { trans ( "profile.changeAvatar" ) }
270+ </ Button >
269271 </ Upload >
270272
271273 < BlurFinishInput
272-
273274 valueCheck = { {
274275 rule : ( val ) => val . trim ( ) !== "" ,
275276 message : trans ( "profile.nameCheck" ) ,
@@ -285,20 +286,20 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
285286 </ Card >
286287
287288 < Card style = { { marginBottom : "20px" } } >
288- < Title level = { 4 } > About </ Title >
289+ < Title level = { 4 } > { trans ( "profile.about" ) } </ Title >
289290 < Space direction = "horizontal" size = { 10 } wrap = { true } >
290- < Text > User-ID : { user . id } </ Text > |
291- < Text > Created At : { dayjs ( user . createdTimeMs ) . format ( "YYYY-MM-DD HH:mm:ss" ) } </ Text > |
292- < Text > Current Organization : { currentOrg ?. name } </ Text >
291+ < Text > { trans ( "profile.userId" ) } : { user . id } </ Text > |
292+ < Text > { trans ( "profile.createdAt" ) } : { dayjs ( user . createdTimeMs ) . format ( "YYYY-MM-DD HH:mm:ss" ) } </ Text > |
293+ < Text > { trans ( "profile.currentOrg" ) } : { currentOrg ?. name } </ Text >
293294 </ Space >
294295 </ Card >
295296
296297 < Card style = { { marginBottom : "20px" } } >
297- < Title level = { 4 } > Settings </ Title >
298+ < Title level = { 4 } > { trans ( "profile.settings" ) } </ Title >
298299 < Space direction = "vertical" size = { 10 } >
299- < Text > UI Language :</ Text >
300+ < Text > { trans ( "profile.uiLanguage" ) } :</ Text >
300301 < Select
301- defaultValue = { currentUser . uiLanguage }
302+ defaultValue = { currentUser . uiLanguage ?? 'en' }
302303 style = { { width : 200 } }
303304 onChange = { handleLanguageChange }
304305 showSearch
@@ -316,14 +317,16 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
316317 </ Card >
317318
318319 < Card style = { { marginBottom : "20px" } } >
319- < Title level = { 4 } > Info </ Title >
320+ < Title level = { 4 } > { trans ( "profile.info" ) } </ Title >
320321 < Space direction = "horizontal" size = { 10 } >
321322 < Row gutter = { [ 24 , 24 ] } >
322323 < Col xs = { 24 } sm = { 12 } xl = { 6 } style = { { marginBottom : "20px" , minWidth : "300px" } } span = { 8 } >
323324 < Card hoverable >
324325 < div style = { { display : "flex" , justifyContent : "space-between" } } >
325326 < div >
326- < p style = { { textTransform : "uppercase" , fontSize : "13px" } } > Created Apps</ p >
327+ < p style = { { textTransform : "uppercase" , fontSize : "13px" } } >
328+ { trans ( "profile.createdApps" ) }
329+ </ p >
327330 < h4 style = { { fontSize : "22px" } } >
328331 < span data-target = { apps . filter ( app => app . createBy === user . username && app . applicationType == 1 ) . length } >
329332 < CountUp start = { 0 } end = { apps . filter ( app => app . createBy === user . username && app . applicationType == 1 ) . length } duration = { 2 } />
@@ -343,7 +346,9 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
343346 < Card hoverable >
344347 < div style = { { display : "flex" , justifyContent : "space-between" } } >
345348 < div >
346- < p style = { { textTransform : "uppercase" , fontSize : "13px" } } > Created Modules</ p >
349+ < p style = { { textTransform : "uppercase" , fontSize : "13px" } } >
350+ { trans ( "profile.createdModules" ) }
351+ </ p >
347352 < h4 style = { { fontSize : "22px" } } >
348353 < span data-target = { apps . filter ( app => app . createBy === user . username && app . applicationType == 2 ) . length } >
349354 < CountUp start = { 0 } end = { apps . filter ( app => app . createBy === user . username && app . applicationType == 2 ) . length } duration = { 2 } />
@@ -363,14 +368,18 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
363368 < Card hoverable >
364369 < div style = { { display : "flex" , justifyContent : "space-between" } } >
365370 < div >
366- < p style = { { textTransform : "uppercase" , fontSize : "13px" } } > on Marketplace</ p >
371+ < p style = { { textTransform : "uppercase" , fontSize : "13px" } } >
372+ { trans ( "profile.onMarketplace" ) }
373+ </ p >
367374 < h4 style = { { fontSize : "22px" } } >
368375 < span data-target = { 8 } >
369376 < CountUp start = { 0 } end = { 8 } duration = { 2 } />
370377 </ span >
371378 </ h4 >
372379 < div style = { { display : "flex" , alignItems : "center" } } >
373- < h5 style = { { color : "#55c27f" , marginRight : "10px" } } > How to publish on Marketplce</ h5 >
380+ < h5 style = { { color : "#55c27f" , marginRight : "10px" } } >
381+ { trans ( "profile.howToPublish" ) }
382+ </ h5 >
374383 </ div >
375384 </ div >
376385 < BgSuccess style = { { padding : '6px' , width : '48px' , height : '48px' , borderRadius : '4px' , display : 'flex' , alignItems : 'center' , justifyContent : 'center' } } >
0 commit comments