mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 15:29:36 +02:00
feat: Localize text in calendar and adventure pages, and update CountryCard component
This commit is contained in:
parent
16fc9bc70e
commit
670e499d8f
4 changed files with 621 additions and 622 deletions
|
@ -1,9 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import { continentCodeToString, getFlag } from '$lib';
|
|
||||||
import type { Country } from '$lib/types';
|
import type { Country } from '$lib/types';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
const dispatch = createEventDispatcher();
|
import { t } from 'svelte-i18n';
|
||||||
|
|
||||||
import MapMarkerStar from '~icons/mdi/map-marker-star';
|
import MapMarkerStar from '~icons/mdi/map-marker-star';
|
||||||
|
|
||||||
|
@ -37,15 +36,15 @@
|
||||||
Visited {country.num_visits} Region{country.num_visits > 1 ? 's' : ''}
|
Visited {country.num_visits} Region{country.num_visits > 1 ? 's' : ''}
|
||||||
</div>
|
</div>
|
||||||
{:else if country.num_visits > 0 && country.num_visits === country.num_regions}
|
{:else if country.num_visits > 0 && country.num_visits === country.num_regions}
|
||||||
<div class="badge badge-success">Completed</div>
|
<div class="badge badge-success">{$t('adventures.visited')}</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="badge badge-error">Not Visited</div>
|
<div class="badge badge-error">{$t('adventures.not_visited')}</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-actions justify-end">
|
<div class="card-actions justify-end">
|
||||||
<!-- <button class="btn btn-info" on:click={moreInfo}>More Info</button> -->
|
<!-- <button class="btn btn-info" on:click={moreInfo}>More Info</button> -->
|
||||||
<button class="btn btn-primary" on:click={nav}>Open</button>
|
<button class="btn btn-primary" on:click={nav}>{$t('notes.open')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -261,7 +261,7 @@
|
||||||
<CategoryFilterDropdown bind:types={typeString} />
|
<CategoryFilterDropdown bind:types={typeString} />
|
||||||
<button
|
<button
|
||||||
on:click={() => (is_category_modal_open = true)}
|
on:click={() => (is_category_modal_open = true)}
|
||||||
class="btn btn-neutral btn-sm min-w-full">Manage Categories</button
|
class="btn btn-neutral btn-sm min-w-full">{$t('categories.manage_categories')}</button
|
||||||
>
|
>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<h3 class="text-center font-bold text-lg mb-4">{$t('adventures.sort')}</h3>
|
<h3 class="text-center font-bold text-lg mb-4">{$t('adventures.sort')}</h3>
|
||||||
|
|
|
@ -33,6 +33,6 @@
|
||||||
<!-- download calendar -->
|
<!-- download calendar -->
|
||||||
<div class="flex items-center justify-center mt-4">
|
<div class="flex items-center justify-center mt-4">
|
||||||
<a href={icsCalendarDataUrl} download="adventures.ics" class="btn btn-primary"
|
<a href={icsCalendarDataUrl} download="adventures.ics" class="btn btn-primary"
|
||||||
>Download Calendar</a
|
>{$t('adventures.download_calendar')}</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue