-
Map Options
+
{$t('map.map_options')}
-
+
{#if newMarker}
{$t('map.add_adventure_at_marker')}
{$t('map.clear_marker')}
{:else}
{$t('map.add_adventure')}
{/if}
@@ -160,7 +160,7 @@
{/if}
goto(`/adventures/${adventure.id}`)}>{$t('map.view_details')}
{/if}
diff --git a/frontend/src/routes/search/+page.svelte b/frontend/src/routes/search/+page.svelte
index ed005ae..20e6de1 100644
--- a/frontend/src/routes/search/+page.svelte
+++ b/frontend/src/routes/search/+page.svelte
@@ -4,10 +4,9 @@
import type { Adventure, OpenStreetMapPlace } from '$lib/types';
import { onMount } from 'svelte';
import type { PageData } from './$types';
- import EditAdventure from '$lib/components/AdventureModal.svelte';
- import { appVersion } from '$lib/config';
import { goto } from '$app/navigation';
import AdventureModal from '$lib/components/AdventureModal.svelte';
+ import { t } from 'svelte-i18n';
export let data: PageData;
@@ -42,9 +41,7 @@
publicAdventures = data.props.adventures;
if (data.user?.pk != null) {
- myAdventures = myAdventures.filter(
- (adventure) => adventure.user_id === data.user?.pk ?? -1
- );
+ myAdventures = myAdventures.filter((adventure) => adventure.user_id === data.user?.pk);
} else {
myAdventures = [];
}
@@ -93,14 +90,14 @@
{/if}
{#if myAdventures.length !== 0}
-
AdventureLog Results
+
{$t('search.adventurelog_results')}
(property = 'all')}
@@ -109,7 +106,7 @@
class="join-item btn"
type="radio"
name="filter"
- aria-label="Name"
+ aria-label={$t('adventures.name')}
id="name"
on:change={() => (property = 'name')}
/>
@@ -117,7 +114,7 @@
class="join-item btn"
type="radio"
name="filter"
- aria-label="Type"
+ aria-label={$t('transportation.type')}
id="type"
on:change={() => (property = 'type')}
/>
@@ -125,7 +122,7 @@
class="join-item btn"
type="radio"
name="filter"
- aria-label="Location"
+ aria-label={$t('adventures.location')}
id="location"
on:change={() => (property = 'location')}
/>
@@ -133,7 +130,7 @@
class="join-item btn"
type="radio"
name="filter"
- aria-label="Description"
+ aria-label={$t('adventures.description')}
id="description"
on:change={() => (property = 'description')}
/>
@@ -141,17 +138,19 @@
class="join-item btn"
type="radio"
name="filter"
- aria-label="Activity Types"
+ aria-label={$t('adventures.activity_types')}
id="activity_types"
on:change={() => (property = 'activity_types')}
/>
-
+
{/if}
{#if myAdventures.length > 0}
-
My Adventures
+
{$t('adventures.my_adventures')}
{#each myAdventures as adventure}
0}
- Public Adventures
+ {$t('search.public_adventures')}
{#each publicAdventures as adventure}
{/if}
{#if osmResults.length > 0}
- Online Results
+ {$t('search.online_results')}
{#each osmResults as result}