mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 15:36:18 +00:00
Replace static text with localized strings in UserProfileView
This commit is contained in:
@@ -145,16 +145,16 @@ export const UserProfileView: FC<{}> = props =>
|
|||||||
</div>
|
</div>
|
||||||
<NitroCard.Tabs>
|
<NitroCard.Tabs>
|
||||||
<NitroCard.TabItem isActive={ activeTab === 'badge' } count={ userBadges.length } onClick={ () => onTabClick('badge') }>
|
<NitroCard.TabItem isActive={ activeTab === 'badge' } count={ userBadges.length } onClick={ () => onTabClick('badge') }>
|
||||||
Badge
|
{ LocalizeText('extendedprofile.tab.badge') }
|
||||||
</NitroCard.TabItem>
|
</NitroCard.TabItem>
|
||||||
<NitroCard.TabItem isActive={ activeTab === 'amici' } count={ userProfile.friendsCount } onClick={ () => onTabClick('amici') }>
|
<NitroCard.TabItem isActive={ activeTab === 'amici' } count={ userProfile.friendsCount } onClick={ () => onTabClick('amici') }>
|
||||||
Amici
|
{ LocalizeText('extendedprofile.tab.friends') }
|
||||||
</NitroCard.TabItem>
|
</NitroCard.TabItem>
|
||||||
<NitroCard.TabItem isActive={ activeTab === 'stanze' } onClick={ () => onTabClick('stanze') }>
|
<NitroCard.TabItem isActive={ activeTab === 'stanze' } onClick={ () => onTabClick('stanze') }>
|
||||||
Stanze
|
{ LocalizeText('extendedprofile.tab.rooms') }
|
||||||
</NitroCard.TabItem>
|
</NitroCard.TabItem>
|
||||||
<NitroCard.TabItem isActive={ activeTab === 'gruppi' } count={ userProfile.groups?.length } onClick={ () => onTabClick('gruppi') }>
|
<NitroCard.TabItem isActive={ activeTab === 'gruppi' } count={ userProfile.groups?.length } onClick={ () => onTabClick('gruppi') }>
|
||||||
Gruppi
|
{ LocalizeText('extendedprofile.tab.groups') }
|
||||||
</NitroCard.TabItem>
|
</NitroCard.TabItem>
|
||||||
</NitroCard.Tabs>
|
</NitroCard.Tabs>
|
||||||
<div className="flex-1 overflow-auto p-2">
|
<div className="flex-1 overflow-auto p-2">
|
||||||
@@ -166,7 +166,7 @@ export const UserProfileView: FC<{}> = props =>
|
|||||||
))
|
))
|
||||||
: (
|
: (
|
||||||
<Flex center fullWidth className="h-full">
|
<Flex center fullWidth className="h-full">
|
||||||
<Text small variant="muted">Nessun badge da mostrare</Text>
|
<Text small variant="muted">{ LocalizeText('extendedprofile.badge.empty') }</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -178,7 +178,7 @@ export const UserProfileView: FC<{}> = props =>
|
|||||||
<FriendsContainerView friendsCount={ userProfile.friendsCount } relationships={ userRelationships } />
|
<FriendsContainerView friendsCount={ userProfile.friendsCount } relationships={ userRelationships } />
|
||||||
) : (
|
) : (
|
||||||
<Flex center className="h-full">
|
<Flex center className="h-full">
|
||||||
<Text small variant="muted">Caricamento...</Text>
|
<Text small variant="muted">{ LocalizeText('generic.loading') }</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
) }
|
) }
|
||||||
</div>
|
</div>
|
||||||
@@ -187,12 +187,12 @@ export const UserProfileView: FC<{}> = props =>
|
|||||||
<div className="flex flex-col gap-1 h-full">
|
<div className="flex flex-col gap-1 h-full">
|
||||||
{ !userRooms && (
|
{ !userRooms && (
|
||||||
<Flex center className="h-full">
|
<Flex center className="h-full">
|
||||||
<Text small variant="muted">Caricamento stanze...</Text>
|
<Text small variant="muted">{ LocalizeText('extendedprofile.rooms.loading') }</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
) }
|
) }
|
||||||
{ userRooms && userRooms.length === 0 && (
|
{ userRooms && userRooms.length === 0 && (
|
||||||
<Flex center className="h-full">
|
<Flex center className="h-full">
|
||||||
<Text small variant="muted">Nessuna stanza trovata</Text>
|
<Text small variant="muted">{ LocalizeText('extendedprofile.rooms.empty') }</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
) }
|
) }
|
||||||
{ userRooms && userRooms.length > 0 && userRooms.map(room => (
|
{ userRooms && userRooms.length > 0 && userRooms.map(room => (
|
||||||
|
|||||||
Reference in New Issue
Block a user