Add internationalization support for profile and shared collections; update translations in multiple languages

This commit is contained in:
Sean Morley
2024-11-05 14:40:32 -05:00
parent bcba4f4425
commit c7207ccf52
11 changed files with 93 additions and 18 deletions

View File

@@ -3,6 +3,7 @@
import CollectionCard from '$lib/components/CollectionCard.svelte';
import type { Collection } from '$lib/types';
import type { PageData } from './$types';
import { t } from 'svelte-i18n';
export let data: PageData;
console.log(data);
@@ -17,10 +18,11 @@
</div>
{:else}
<p class="text-center font-semibold text-xl mt-6">
No collections found that are shared with you.
{$t('share.no_shared_found')}
{#if data.user && !data.user?.public_profile}
<p>In order to allow users to share with you, you need your profile set to public.</p>
<button class="btn btn-neutral mt-4" on:click={() => goto('/settings')}>Go to Settings</button
<p>{$t('share.set_public')}</p>
<button class="btn btn-neutral mt-4" on:click={() => goto('/settings')}
>{$t('share.go_to_settings')}</button
>
{/if}
</p>