front: add missing translation components

This commit is contained in:
Arthur Jamet
2023-12-14 17:19:30 +01:00
committed by Clément Le Bihan
parent d3994ff26e
commit 9bb256f2ee
7 changed files with 38 additions and 44 deletions
+5 -8
View File
@@ -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}