front: add missing translation components
This commit is contained in:
committed by
Clément Le Bihan
parent
d3994ff26e
commit
9bb256f2ee
@@ -81,14 +81,14 @@ const ProfileView = (props: RouteProps<{}>) => {
|
||||
{userQuery.data.name}
|
||||
</Text>
|
||||
<ButtonBase
|
||||
title="Modifier profil"
|
||||
title={translate('updateProfile')}
|
||||
type={'filled'}
|
||||
onPress={async () => navigation.navigate('Settings', {})}
|
||||
/>
|
||||
</View>
|
||||
<Text style={{ paddingBottom: 10, fontWeight: 'bold' }}>
|
||||
Account created on {userQuery.data.data.createdAt.toLocaleDateString()}
|
||||
</Text>
|
||||
<Translate style={{ paddingBottom: 10, fontWeight: 'bold' }} translationKey='accountCreatedOn' format={(e) => (
|
||||
`${e} ${userQuery.data.data.createdAt.toLocaleDateString()}`
|
||||
)} />
|
||||
<Flex
|
||||
style={{
|
||||
flexDirection: 'row',
|
||||
@@ -96,15 +96,12 @@ const ProfileView = (props: RouteProps<{}>) => {
|
||||
paddingBottom: 10,
|
||||
}}
|
||||
>
|
||||
<Text style={{ paddingRight: 20 }}>
|
||||
Your client ID is {userQuery.data.id}
|
||||
</Text>
|
||||
<Translate translationKey="gamesPlayed" format={(e) => `${userQuery.data.data.gamesPlayed} ${e}`} />
|
||||
</Flex>
|
||||
</Column>
|
||||
</View>
|
||||
<Row style={{ alignItems: 'center', paddingBottom: 20 }}>
|
||||
<Text style={{ paddingRight: 20 }}>{`${translate('level')} ${level}`}</Text>
|
||||
<Translate style={{ paddingRight: 20 }} translationKey='level' format={(e) => `${e} ${level}`} />
|
||||
<Progress
|
||||
bgColor={colors.coolGray[500]}
|
||||
value={progessValue}
|
||||
|
||||
Reference in New Issue
Block a user