Skip to content

Commit

Permalink
i18n(amicale): terms of service
Browse files Browse the repository at this point in the history
  • Loading branch information
ignyx committed Sep 3, 2024
1 parent 74f5126 commit 52e814b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@
"welcomeFeedback": "We plan on doing more! If you have any suggestions or found bugs, please tell us by tapping the button below.",
"minor": "Minor",
"nonMinor": "Non minor",
"accept": "Accept"
"accept": "Accept",
"tos": "Terms of Service",
"tosParagraphOne": "By pressing \"Accept\", you acknowledge that you have read and accepted the ",
"tosParagraphTwo": " to fully enjoy the application."
},
"clubs": {
"title": "Clubs",
Expand Down
5 changes: 4 additions & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@
"welcomeFeedback": "Nous allons essayer de proposer plus de services ! Si tu as des suggestions, ou as trouvé des bugs, merci de nous contacter avec le bouton ci-dessous.",
"minor": "Mineur.e",
"nonMinor": "Majeur.e",
"accept": "Accepter"
"accept": "Accepter",
"tos": "Conditions Générales d'Utilisation",
"tosParagraphOne": "En appuyant sur \"Accepter\", tu reconnais avoir lu et accepté les ",
"tosParagraphTwo": " pour profiter pleinement de l'application."
},
"clubs": {
"title": "Liste des Clubs",
Expand Down
4 changes: 1 addition & 3 deletions src/components/Amicale/Profile/AcceptTermsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ function AcceptTermsDialog(props: PropsType) {
};

const renderDialog = (data: ResultType | undefined, loading: boolean) => {
const title = loading // TODO i18n
? i18n.t('dialog.disconnect.titleLoading')
: i18n.t('dialog.disconnect.title');
let message = loading
? 'Loading...'
: 'Terms accepted : ' + (data ? data.success : 'false');
const title = i18n.t('screens.profile.tos');
return (
<AlertDialog
visible={props.visible}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Amicale/Profile/ProfileTermsAlertCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function ProfileTermsAlertCard(props: Props) {
{hidden ? undefined : (
<Card style={styles.card}>
<Card.Title
title="Conditions générales d'utilisation"
title={i18n.t('screens.profile.tos')}
left={(iconProps) => (
<Avatar.Icon
size={iconProps.size}
Expand All @@ -66,14 +66,14 @@ export default function ProfileTermsAlertCard(props: Props) {
<Card.Content>
<Divider />
<Paragraph>
En appuyant sur "Accepter", tu reconnais avoir lu et accepté les{' '}
{i18n.t('screens.profile.tosParagraphOne')}
<Text
style={{ color: 'blue' }}
onPress={() => openURLinBrowser(termsUrl)}
>
conditions générales d'utilisation
{i18n.t('screens.profile.tos')}
</Text>{' '}
pour profiter pleinement de l'application.
{i18n.t('screens.profile.tosParagraphTwo')}
</Paragraph>
<Divider />
<Card.Actions>
Expand Down

0 comments on commit 52e814b

Please sign in to comment.