1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-09 07:05:18 +02:00

Change joined string to i18n

This commit is contained in:
Lars Lehmann 2025-01-23 19:46:22 +01:00
parent a2a3570ec0
commit c7a11874dd
No known key found for this signature in database
GPG key ID: BC832CCD9A8BAE4D

View file

@ -4,6 +4,7 @@
import type { User } from '$lib/types';
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
import { t } from 'svelte-i18n';
import Calendar from '~icons/mdi/calendar';
@ -43,7 +44,8 @@
<div class="flex items-center justify-center mt-4 space-x-2 text-sm">
<Calendar class="w-5 h-5 text-primary" />
<p>
{user.date_joined ? 'Joined ' + new Date(user.date_joined).toLocaleDateString() : ''}
{$t('profile.member_since')}
{new Date(user.date_joined).toLocaleDateString()}
</p>
</div>