Skip to content

Commit

Permalink
Localize dropoff and pickup information labels and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-LHOSTE committed Nov 12, 2024
1 parent 1dfb88f commit cfc3fe3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@
"CART_COLLECTION_TIME_DIFF": "Collection in {{diff}} minutes",
"TIME_DIFF_SHORT": "{{min}} - {{max}} minutes",
"TASK_ADD_PROOF_OF_DELIVERY": "Add a proof of delivery",
"STORE_NEW_DELIVERY_PICKUP_TITLE": "Pickup address",
"STORE_NEW_DELIVERY_PICKUP_DESCRIPTION": "Fill in the information about the pickup address or keep the default one",
"STORE_NEW_DELIVERY_PICKUP_DEFAULT_ADDRESS": "Default pickup address",
"STORE_NEW_DELIVERY_PICKUP_USE_CUSTOM_ADDRESS": "Use a custom address",
"STORE_NEW_DELIVERY_DROPOFF_TITLE": "Dropoff address",
"STORE_NEW_DELIVERY_DROPOFF_DESCRIPTION": "Fill in the information about the dropoff address and the contact details",
"STORE_NEW_DELIVERY": "New delivery",
"STORE_NEW_DELIVERY_ADDRESS": "Address",
"STORE_NEW_DELIVERY_SEARCH_CLIENT": "Search for a client",
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@
"TASK_IMAGE_UPLOAD_CONFIRM_LONG": "L'image a été uploadée avec succès",
"AN_ERROR_OCCURRED": "Une erreur s'est produite",
"TASK_ADD_PROOF_OF_DELIVERY": "Ajouter une preuve de livraison",
"STORE_NEW_DELIVERY_PICKUP_TITLE": "Adresse de récupération",
"STORE_NEW_DELIVERY_PICKUP_DESCRIPTION": "Indiquez une adresse de récupération ou garder l'address de livraison par défaut pour récupérer la commande",
"STORE_NEW_DELIVERY_PICKUP_DEFAULT_ADDRESS": "Adresse de livraison par défaut",
"STORE_NEW_DELIVERY_PICKUP_USE_CUSTOM_ADDRESS": "Utiliser une adresse personnalisée",
"STORE_NEW_DELIVERY_DROPOFF_TITLE": "Adresse de dépôt",
"STORE_NEW_DELIVERY_DROPOFF_DESCRIPTION": "Remplissez les informations de livraison ainsi que la personne à contacter",
"STORE_NEW_DELIVERY": "Nouvelle livraison",
"STORE_NEW_DELIVERY_ADDRESS": "Adresse",
"STORE_NEW_DELIVERY_SEARCH_CLIENT": "Rechercher un client",
Expand Down
6 changes: 4 additions & 2 deletions src/navigation/store/NewDeliveryAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ function NewDeliveryAddress(props) {
color={backgroundColor}
stroke={10}
/>
<Text style={styles.label}>Drop off informations</Text>
<Text style={styles.label}>
{t('STORE_NEW_DELIVERY_DROPOFF_TITLE')}
</Text>
</View>
<Text style={styles.optional}>
Fill in the information about the drop off location and contact
{t('STORE_NEW_DELIVERY_DROPOFF_DESCRIPTION')}
</Text>
</View>
<View style={[styles.formGroup, { zIndex: 2 }]}>
Expand Down
13 changes: 8 additions & 5 deletions src/navigation/store/NewDeliveryPickup.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,18 @@ function NewDeliveryPickup(props) {
color={backgroundColor}
stroke={10}
/>
<Text style={styles.label}>Pick up informations</Text>
<Text style={styles.label}>
{t('STORE_NEW_DELIVERY_PICKUP_TITLE')}
</Text>
</View>
<Text style={styles.optional}>
Fill in the information about the pick up location or keep the
default values.
{t('STORE_NEW_DELIVERY_PICKUP_DESCRIPTION')}
</Text>
</View>
<View style={[styles.formGroup, { zIndex: 2 }]}>
<Text style={styles.label}>Default pick up address</Text>
<Text style={styles.label}>
{t('STORE_NEW_DELIVERY_PICKUP_DEFAULT_ADDRESS')}
</Text>
<Text style={styles.optional}>{store.address.name}</Text>
<Text>{store.address.streetAddress}</Text>
<Text>{store.address.telephone}</Text>
Expand All @@ -200,7 +203,7 @@ function NewDeliveryPickup(props) {
<Checkbox
value={customAddress}
onChange={() => setCustomAddress(!customAddress)}>
<Text>Use custom pickup address</Text>
<Text>{t('STORE_NEW_DELIVERY_PICKUP_USE_CUSTOM_ADDRESS')}</Text>
</Checkbox>
</View>
<View style={customAddress ? {} : styles.disabled}>
Expand Down

0 comments on commit cfc3fe3

Please sign in to comment.