diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 4cc28c5..8caa73a 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -177,6 +177,12 @@ "no_adventures_found": "No adventures found", "mark_region_as_visited": "Mark region {region}, {country} as visited?", "mark_visited": "Mark Visited", + "error_updating_regions": "Error updating regions", + "regions_updated": "regions updated", + "visited_region_check": "Visited Region Check", + "visited_region_check_desc": "By selecting this, the server will check all of your visited adventures and mark the regions they are located in as visited in world travel.", + "update_visited_regions": "Update Visited Regions", + "update_visited_regions_disclaimer": "This may take a while depending on the number of adventures you have visited.", "activities": { "general": "General 🌍", "outdoor": "Outdoor 🏞️", diff --git a/frontend/src/routes/settings/+page.svelte b/frontend/src/routes/settings/+page.svelte index 3459ab8..6ec3221 100644 --- a/frontend/src/routes/settings/+page.svelte +++ b/frontend/src/routes/settings/+page.svelte @@ -53,9 +53,9 @@ }); let data = await res.json(); if (res.ok) { - addToast('success', `${data.new_regions} regions updated`); + addToast('success', `${data.new_regions} ${$t('adventures.regions_updated')}`); } else { - addToast('error', 'Error updating visited regions'); + addToast('error', $t('adventures.error_updating_regions')); } } @@ -183,15 +183,16 @@
- By selecting this, the server will check all of your visited adventures and mark the regions - they are located in as "visited" in world travel. + {$t('adventures.visited_region_check_desc')}
{$t('adventures.update_visited_regions')} -This may take longer depending on the number of adventures you have.
+{$t('adventures.update_visited_regions_disclaimer')}