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:
parent
a2a3570ec0
commit
c7a11874dd
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue