diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 7b1eb46..3971d1b 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -113,6 +113,7 @@ "copy_link": "Copy Link", "image": "Image", "upload_image": "Upload Image", + "open_in_maps": "Open in Maps", "url": "URL", "fetch_image": "Fetch Image", "wikipedia": "Wikipedia", diff --git a/frontend/src/routes/adventures/[id]/+page.svelte b/frontend/src/routes/adventures/[id]/+page.svelte index d282083..800f662 100644 --- a/frontend/src/routes/adventures/[id]/+page.svelte +++ b/frontend/src/routes/adventures/[id]/+page.svelte @@ -436,6 +436,12 @@ {/if} + {$t('adventures.open_in_maps')} {/if} - goto(`/adventures/${adventure.id}`)}>{$t('map.view_details')} + + {#if adventure.longitude && adventure.latitude} + {$t('adventures.open_in_maps')} + {/if} + goto(`/adventures/${adventure.id}`)} + >{$t('map.view_details')} + {/if}