mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-01 08:12:32 +00:00
fix links for alternative languages
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
Route,
|
Route,
|
||||||
Scale
|
Scale
|
||||||
} from 'lucide-svelte';
|
} from 'lucide-svelte';
|
||||||
import { _ } from 'svelte-i18n';
|
import { _, locale } from 'svelte-i18n';
|
||||||
|
import { getURLForLanguage } from '$lib/utils';
|
||||||
import { exampleGPXFile } from '$lib/assets/example';
|
import { exampleGPXFile } from '$lib/assets/example';
|
||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
|
import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
|
||||||
@@ -54,11 +55,15 @@
|
|||||||
{$_('metadata.description')}
|
{$_('metadata.description')}
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full flex flex-row justify-center gap-3">
|
<div class="w-full flex flex-row justify-center gap-3">
|
||||||
<Button href="./app" class="w-1/3 min-w-fit">
|
<Button href={getURLForLanguage($locale, '/app')} class="w-1/3 min-w-fit">
|
||||||
<Map size="18" class="mr-1.5" />
|
<Map size="18" class="mr-1.5" />
|
||||||
{$_('homepage.app')}
|
{$_('homepage.app')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="secondary" href="./help" class="w-1/3 min-w-fit">
|
<Button
|
||||||
|
variant="secondary"
|
||||||
|
href={getURLForLanguage($locale, '/help')}
|
||||||
|
class="w-1/3 min-w-fit"
|
||||||
|
>
|
||||||
<BookOpenText size="18" class="mr-1.5" />
|
<BookOpenText size="18" class="mr-1.5" />
|
||||||
<span>{$_('menu.help')}</span>
|
<span>{$_('menu.help')}</span>
|
||||||
</Button>
|
</Button>
|
||||||
|
Reference in New Issue
Block a user