diff --git a/bun.lockb b/bun.lockb index fbbdab7e..45e1b00d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 7948e74a..97ac17b9 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "svelte-check": "^3.0.1", "svelte-hero-icons": "^5.0.0", "svelte-tiny-virtual-list": "^2.0.5", + "sveltekit-i18n": "^2.4.2", "tailwindcss": "^3.3.3", "tslib": "^2.4.1", "typescript": "^5.0.0", diff --git a/src/lib/components/lemmy/SiteCard.svelte b/src/lib/components/lemmy/SiteCard.svelte index 17bd15c7..f6398eb6 100644 --- a/src/lib/components/lemmy/SiteCard.svelte +++ b/src/lib/components/lemmy/SiteCard.svelte @@ -2,21 +2,14 @@ import Markdown from '$lib/components/markdown/Markdown.svelte' import Avatar from '$lib/components/ui/Avatar.svelte' import StickyCard from '$lib/components/ui/StickyCard.svelte' - import FormattedNumber from '$lib/components/util/FormattedNumber.svelte' - import RelativeDate from '$lib/components/util/RelativeDate.svelte' - import { publishedToDate } from '$lib/components/util/date.js' - import { getClient } from '$lib/lemmy.js' import type { PersonView, SiteView, Tagline } from 'lemmy-js-client' - import { Button, Disclosure, Popover } from 'mono-svelte' + import { Button } from 'mono-svelte' import { BuildingOffice, - Calendar, ChartBar, - ChatBubbleOvalLeftEllipsis, Icon, InformationCircle, Newspaper, - PencilSquare, ServerStack, UserGroup, } from 'svelte-hero-icons' @@ -24,6 +17,7 @@ import LabelStat from '../ui/LabelStat.svelte' import ItemList from './generic/ItemList.svelte' import { userLink } from '$lib/lemmy/generic' + import { t } from '$lib/translations' export let site: SiteView export let taglines: Tagline[] | undefined = undefined @@ -49,15 +43,25 @@
- -