diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index a311c070..c17ae6fb 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -91,7 +91,7 @@

Flugbuech

- {$i18n.t('welcome', 'Welcome, {name}!', {name: $loginState?.username || 'Guest'})} + {$i18n.t('layout.welcome', 'Welcome, {name}!', {name: $loginState?.username || 'Guest'})}

diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 51e21303..d2124ee5 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -5,6 +5,7 @@ import {ResolvablePromise} from '$lib/resolvable-promise'; import {_loadApiStats, type GlobalStats} from './+page'; + import {i18n} from '$lib/i18n'; let stats = new ResolvablePromise(); @@ -28,11 +29,13 @@ -

Overview

+

{$i18n.t('home.title--overview', 'Overview')}

- Welcome to Flugbuech! This is a free, open source and ad-free platform for keeping track - of your free flights (paragliding or hang gliding). + {$i18n.t( + 'home.intro', + 'Welcome to Flugbuech! This is a free, open source and ad-free platform for keeping track of your free flights (paragliding or hang gliding).', + )}

diff --git a/frontend/src/translations/de/translation.json b/frontend/src/translations/de/translation.json index ec55d567..54d0e4cb 100644 --- a/frontend/src/translations/de/translation.json +++ b/frontend/src/translations/de/translation.json @@ -1,3 +1,9 @@ { - "welcome": "Willkommen, {name}!" + "layout": { + "welcome": "Willkommen, {name}!" + }, + "home": { + "intro": "Willkommen zu Flugbuech! Dies ist eine kostenlose, quelloffene und werbefreie Plattform zur Eintragung deiner Gleitschirm- und Drachenflüge.", + "title--overview": "Überblick" + } } diff --git a/frontend/src/translations/en/translation.json b/frontend/src/translations/en/translation.json index bb3d40f6..b196c0cb 100644 --- a/frontend/src/translations/en/translation.json +++ b/frontend/src/translations/en/translation.json @@ -1,3 +1,9 @@ { - "welcome": "Welcome, {name}!" + "layout": { + "welcome": "Welcome, {name}!" + }, + "home": { + "intro": "Welcome to Flugbuech! This is a free, open source and ad-free platform for keeping track of your free flights (paragliding or hang gliding).", + "title--overview": "Overview" + } }