1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-04 04:35:19 +02:00

Add new translations for distance, itinerary, and linked items in multiple languages; update UI to reflect new localization keys.

This commit is contained in:
Sean Morley 2025-05-28 10:51:26 -04:00
parent 069bcfb58a
commit 9df0338c3d
12 changed files with 115 additions and 36 deletions

View file

@ -269,7 +269,9 @@
"sunrise": "Sonnenaufgang", "sunrise": "Sonnenaufgang",
"sunset": "Sonnenuntergang", "sunset": "Sonnenuntergang",
"timed": "Zeitlich abgestimmt", "timed": "Zeitlich abgestimmt",
"distance": "Distanz" "distance": "Distanz",
"all_linked_items": "Alle verknüpften Elemente",
"itinerary": "Route"
}, },
"home": { "home": {
"desc_1": "Entdecken, planen und erkunden Sie mühelos", "desc_1": "Entdecken, planen und erkunden Sie mühelos",
@ -672,7 +674,12 @@
"contact": "Kontakt", "contact": "Kontakt",
"phone": "Telefon", "phone": "Telefon",
"recommendation": "Empfehlung", "recommendation": "Empfehlung",
"website": "Webseite" "website": "Webseite",
"recommendations": "Empfehlungen",
"adventure_recommendations": "Abenteuerempfehlungen",
"food": "Essen",
"miles": "Meilen",
"tourism": "Tourismus"
}, },
"lodging": { "lodging": {
"apartment": "Wohnung", "apartment": "Wohnung",

View file

@ -270,6 +270,8 @@
"download_calendar": "Download Calendar", "download_calendar": "Download Calendar",
"all_day": "All Day", "all_day": "All Day",
"ordered_itinerary": "Ordered Itinerary", "ordered_itinerary": "Ordered Itinerary",
"itinerary": "Itinerary",
"all_linked_items": "All Linked Items",
"date_itinerary": "Date Itinerary", "date_itinerary": "Date Itinerary",
"no_ordered_items": "Add items with dates to the collection to see them here.", "no_ordered_items": "Add items with dates to the collection to see them here.",
"date_information": "Date Information", "date_information": "Date Information",
@ -702,6 +704,11 @@
"phone": "Phone", "phone": "Phone",
"contact": "Contact", "contact": "Contact",
"website": "Website", "website": "Website",
"recommendation": "Recommendation" "recommendation": "Recommendation",
"recommendations": "Recommendations",
"adventure_recommendations": "Adventure Recommendations",
"miles": "Miles",
"food": "Food",
"tourism": "Tourism"
} }
} }

View file

@ -317,7 +317,9 @@
"sunrise": "Amanecer", "sunrise": "Amanecer",
"sunset": "Atardecer", "sunset": "Atardecer",
"timed": "Cronometrado", "timed": "Cronometrado",
"distance": "Distancia" "distance": "Distancia",
"all_linked_items": "Todos los artículos vinculados",
"itinerary": "Itinerario"
}, },
"worldtravel": { "worldtravel": {
"all": "Todo", "all": "Todo",
@ -672,7 +674,12 @@
"contact": "Contacto", "contact": "Contacto",
"phone": "Teléfono", "phone": "Teléfono",
"recommendation": "Recomendación", "recommendation": "Recomendación",
"website": "Sitio web" "website": "Sitio web",
"recommendations": "Recomendaciones",
"adventure_recommendations": "Recomendaciones de aventura",
"food": "Alimento",
"miles": "Millas",
"tourism": "Turismo"
}, },
"lodging": { "lodging": {
"apartment": "Departamento", "apartment": "Departamento",

View file

@ -269,7 +269,9 @@
"sunrise": "Lever du soleil", "sunrise": "Lever du soleil",
"sunset": "Coucher de soleil", "sunset": "Coucher de soleil",
"timed": "Chronométré", "timed": "Chronométré",
"distance": "Distance" "distance": "Distance",
"all_linked_items": "Tous les éléments liés",
"itinerary": "Itinéraire"
}, },
"home": { "home": {
"desc_1": "Découvrez, planifiez et explorez en toute simplicité", "desc_1": "Découvrez, planifiez et explorez en toute simplicité",
@ -672,7 +674,12 @@
"contact": "Contact", "contact": "Contact",
"phone": "Téléphone", "phone": "Téléphone",
"recommendation": "Recommandation", "recommendation": "Recommandation",
"website": "Site web" "website": "Site web",
"recommendations": "Recommandations",
"adventure_recommendations": "Recommandations d'aventure",
"food": "Nourriture",
"miles": "Kilomètres",
"tourism": "Tourisme"
}, },
"lodging": { "lodging": {
"apartment": "Appartement", "apartment": "Appartement",

View file

@ -269,7 +269,9 @@
"sunrise": "Alba", "sunrise": "Alba",
"sunset": "Tramonto", "sunset": "Tramonto",
"timed": "A tempo", "timed": "A tempo",
"distance": "Distanza" "distance": "Distanza",
"all_linked_items": "Tutti gli elementi collegati",
"itinerary": "Itinerario"
}, },
"home": { "home": {
"desc_1": "Scopri, pianifica ed esplora con facilità", "desc_1": "Scopri, pianifica ed esplora con facilità",
@ -672,7 +674,12 @@
"contact": "Contatto", "contact": "Contatto",
"phone": "Telefono", "phone": "Telefono",
"recommendation": "Raccomandazione", "recommendation": "Raccomandazione",
"website": "Sito web" "website": "Sito web",
"recommendations": "Raccomandazioni",
"adventure_recommendations": "Consigli di avventura",
"food": "Cibo",
"miles": "Miglia",
"tourism": "Turismo"
}, },
"lodging": { "lodging": {
"apartment": "Appartamento", "apartment": "Appartamento",

View file

@ -269,7 +269,9 @@
"sunrise": "해돋이", "sunrise": "해돋이",
"sunset": "일몰", "sunset": "일몰",
"timed": "시간이 정해졌습니다", "timed": "시간이 정해졌습니다",
"distance": "거리" "distance": "거리",
"all_linked_items": "모든 링크 된 항목",
"itinerary": "여정"
}, },
"auth": { "auth": {
"both_passwords_required": "두 암호 모두 필요합니다", "both_passwords_required": "두 암호 모두 필요합니다",
@ -454,7 +456,12 @@
"contact": "연락처", "contact": "연락처",
"phone": "핸드폰", "phone": "핸드폰",
"recommendation": "추천", "recommendation": "추천",
"website": "웹사이트" "website": "웹사이트",
"recommendations": "권장 사항",
"adventure_recommendations": "모험 추천",
"food": "음식",
"miles": "마일",
"tourism": "관광 여행"
}, },
"search": { "search": {
"adventurelog_results": "Adventurelog 결과", "adventurelog_results": "Adventurelog 결과",

View file

@ -269,7 +269,9 @@
"sunrise": "Zonsopgang", "sunrise": "Zonsopgang",
"sunset": "Zonsondergang", "sunset": "Zonsondergang",
"timed": "Getimed", "timed": "Getimed",
"distance": "Afstand" "distance": "Afstand",
"all_linked_items": "Alle gekoppelde items",
"itinerary": "Routebeschrijving"
}, },
"home": { "home": {
"desc_1": "Ontdek, plan en verken met gemak", "desc_1": "Ontdek, plan en verken met gemak",
@ -672,7 +674,12 @@
"contact": "Contact", "contact": "Contact",
"phone": "Telefoon", "phone": "Telefoon",
"recommendation": "Aanbeveling", "recommendation": "Aanbeveling",
"website": "Website" "website": "Website",
"recommendations": "Aanbevelingen",
"adventure_recommendations": "Avontuuraanbevelingen",
"food": "Voedsel",
"miles": "Kilometers",
"tourism": "Toerisme"
}, },
"lodging": { "lodging": {
"apartment": "Appartement", "apartment": "Appartement",

View file

@ -317,7 +317,9 @@
"sunrise": "Soloppgang", "sunrise": "Soloppgang",
"sunset": "Solnedgang", "sunset": "Solnedgang",
"timed": "Tidsbestemt", "timed": "Tidsbestemt",
"distance": "Avstand" "distance": "Avstand",
"all_linked_items": "Alle koblede varer",
"itinerary": "Reiserute"
}, },
"worldtravel": { "worldtravel": {
"country_list": "Liste over land", "country_list": "Liste over land",
@ -702,6 +704,11 @@
"phone": "Telefon", "phone": "Telefon",
"contact": "Kontakt", "contact": "Kontakt",
"website": "Nettsted", "website": "Nettsted",
"recommendation": "Anbefaling" "recommendation": "Anbefaling",
"recommendations": "Anbefalinger",
"adventure_recommendations": "Eventyranbefalinger",
"food": "Mat",
"miles": "Miles",
"tourism": "Turisme"
} }
} }

View file

@ -317,7 +317,9 @@
"sunrise": "Wschód słońca", "sunrise": "Wschód słońca",
"sunset": "Zachód słońca", "sunset": "Zachód słońca",
"timed": "Czas", "timed": "Czas",
"distance": "Dystans" "distance": "Dystans",
"all_linked_items": "Wszystkie połączone elementy",
"itinerary": "Trasa"
}, },
"worldtravel": { "worldtravel": {
"country_list": "Lista krajów", "country_list": "Lista krajów",
@ -672,7 +674,12 @@
"contact": "Kontakt", "contact": "Kontakt",
"phone": "Telefon", "phone": "Telefon",
"recommendation": "Zalecenie", "recommendation": "Zalecenie",
"website": "Strona internetowa" "website": "Strona internetowa",
"recommendations": "Zalecenia",
"adventure_recommendations": "Zalecenia przygodowe",
"food": "Żywność",
"miles": "Mil",
"tourism": "Turystyka"
}, },
"lodging": { "lodging": {
"apartment": "Apartament", "apartment": "Apartament",

View file

@ -269,7 +269,9 @@
"sunrise": "Soluppgång", "sunrise": "Soluppgång",
"sunset": "Solnedgång", "sunset": "Solnedgång",
"timed": "Tidsinställd", "timed": "Tidsinställd",
"distance": "Avstånd" "distance": "Avstånd",
"all_linked_items": "Alla länkade objekt",
"itinerary": "Resväg"
}, },
"home": { "home": {
"desc_1": "Upptäck, planera och utforska med lätthet", "desc_1": "Upptäck, planera och utforska med lätthet",
@ -672,7 +674,12 @@
"contact": "Kontakta", "contact": "Kontakta",
"phone": "Telefon", "phone": "Telefon",
"recommendation": "Rekommendation", "recommendation": "Rekommendation",
"website": "Webbplats" "website": "Webbplats",
"recommendations": "Rekommendationer",
"adventure_recommendations": "Äventyrsrekommendationer",
"food": "Mat",
"miles": "Miles",
"tourism": "Turism"
}, },
"lodging": { "lodging": {
"apartment": "Lägenhet", "apartment": "Lägenhet",

View file

@ -317,7 +317,9 @@
"sunrise": "日出", "sunrise": "日出",
"sunset": "日落", "sunset": "日落",
"timed": "时间", "timed": "时间",
"distance": "距离" "distance": "距离",
"all_linked_items": "所有链接的项目",
"itinerary": "行程"
}, },
"auth": { "auth": {
"forgot_password": "忘记密码?", "forgot_password": "忘记密码?",
@ -672,7 +674,12 @@
"contact": "联系方式", "contact": "联系方式",
"phone": "电话", "phone": "电话",
"recommendation": "推荐", "recommendation": "推荐",
"website": "网站" "website": "网站",
"recommendations": "建议",
"adventure_recommendations": "冒险建议",
"food": "食物",
"miles": "英里",
"tourism": "旅游"
}, },
"lodging": { "lodging": {
"campground": "露营地", "campground": "露营地",

View file

@ -781,11 +781,11 @@
value={currentView} value={currentView}
on:change={changeHash} on:change={changeHash}
> >
<option value="itinerary">📅 Itinerary</option> <option value="itinerary">📅 {$t('adventures.itinerary')}</option>
<option value="all">🗒️ All Linked Items</option> <option value="all">🗒️ {$t('adventures.all_linked_items')}</option>
<option value="calendar">🗓️ Calendar</option> <option value="calendar">🗓️ {$t('navbar.calendar')}</option>
<option value="map">🗺️ Map</option> <option value="map">🗺️ {$t('navbar.map')}</option>
<option value="recommendations">👍️ Recommendations</option> <option value="recommendations">👍️ {$t('recomendations.recommendations')}</option>
</select> </select>
<div class="md:flex justify-center mx-auto hidden"> <div class="md:flex justify-center mx-auto hidden">
<!-- svelte-ignore a11y-missing-attribute --> <!-- svelte-ignore a11y-missing-attribute -->
@ -796,32 +796,32 @@
href="#itinerary" href="#itinerary"
role="tab" role="tab"
class="tab {currentView === 'itinerary' ? 'tab-active' : ''}" class="tab {currentView === 'itinerary' ? 'tab-active' : ''}"
tabindex="0">Itinerary</a tabindex="0">{$t('adventures.itinerary')}</a
> >
{/if} {/if}
<a <a
href="#all" href="#all"
role="tab" role="tab"
class="tab {currentView === 'all' ? 'tab-active' : ''}" class="tab {currentView === 'all' ? 'tab-active' : ''}"
tabindex="0">All Linked Items</a tabindex="0">{$t('adventures.all_linked_items')}</a
> >
<a <a
href="#calendar" href="#calendar"
role="tab" role="tab"
class="tab {currentView === 'calendar' ? 'tab-active' : ''}" class="tab {currentView === 'calendar' ? 'tab-active' : ''}"
tabindex="0">Calendar</a tabindex="0">{$t('navbar.calendar')}</a
> >
<a <a
href="#map" href="#map"
role="tab" role="tab"
class="tab {currentView === 'map' ? 'tab-active' : ''}" class="tab {currentView === 'map' ? 'tab-active' : ''}"
tabindex="0">Map</a tabindex="0">{$t('navbar.map')}</a
> >
<a <a
href="#recommendations" href="#recommendations"
role="tab" role="tab"
class="tab {currentView === 'recommendations' ? 'tab-active' : ''}" class="tab {currentView === 'recommendations' ? 'tab-active' : ''}"
tabindex="0">Recommendations</a tabindex="0">{$t('recomendations.recommendations')}</a
> >
</div> </div>
</div> </div>
@ -1372,7 +1372,9 @@
{#if currentView == 'recommendations' && data.user} {#if currentView == 'recommendations' && data.user}
<div class="card bg-base-200 shadow-xl my-8 mx-auto w-10/12"> <div class="card bg-base-200 shadow-xl my-8 mx-auto w-10/12">
<div class="card-body"> <div class="card-body">
<h2 class="card-title text-3xl justify-center mb-4">Adventure Recommendations</h2> <h2 class="card-title text-3xl justify-center mb-4">
{$t('recomendations.adventure_recommendations')}
</h2>
{#each adventures as adventure} {#each adventures as adventure}
{#if adventure.longitude && adventure.latitude} {#if adventure.longitude && adventure.latitude}
<button on:click={() => getRecomendations(adventure)} class="btn btn-neutral" <button on:click={() => getRecomendations(adventure)} class="btn btn-neutral"
@ -1396,7 +1398,7 @@
/> />
<div class="flex w-full justify-between px-2"> <div class="flex w-full justify-between px-2">
<span class="text-lg"> <span class="text-lg">
{(recomendationsRange / 1609.344).toFixed(1)} miles ({( {(recomendationsRange / 1609.344).toFixed(1)} mi ({(
recomendationsRange / 1000 recomendationsRange / 1000
).toFixed(1)} km) ).toFixed(1)} km)
</span> </span>
@ -1406,7 +1408,7 @@
class="join-item btn btn-neutral" class="join-item btn btn-neutral"
type="radio" type="radio"
name="options" name="options"
aria-label="Tourism" aria-label={$t('recomendations.tourism')}
checked={recomendationType == 'tourism'} checked={recomendationType == 'tourism'}
on:click={() => (recomendationType = 'tourism')} on:click={() => (recomendationType = 'tourism')}
/> />
@ -1414,7 +1416,7 @@
class="join-item btn btn-neutral" class="join-item btn btn-neutral"
type="radio" type="radio"
name="options" name="options"
aria-label="Food" aria-label={$t('recomendations.food')}
checked={recomendationType == 'food'} checked={recomendationType == 'food'}
on:click={() => (recomendationType = 'food')} on:click={() => (recomendationType = 'food')}
/> />
@ -1422,7 +1424,7 @@
class="join-item btn btn-neutral" class="join-item btn btn-neutral"
type="radio" type="radio"
name="options" name="options"
aria-label="Lodging" aria-label={$t('adventures.lodging')}
checked={recomendationType == 'lodging'} checked={recomendationType == 'lodging'}
on:click={() => (recomendationType = 'lodging')} on:click={() => (recomendationType = 'lodging')}
/> />