feat: use i18n in components
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { CATEGORIES } from '$lib/categories';
|
||||
import { t } from '$lib/i18n/t';
|
||||
import { toolDescription, toolTitle } from '$lib/i18n/tool-strings';
|
||||
import ToolCard from '$lib/components/search/ToolCard.svelte';
|
||||
import { TOOLS } from '$lib/registry';
|
||||
</script>
|
||||
@@ -23,8 +24,8 @@
|
||||
<div class="panel">
|
||||
<ToolCard
|
||||
toolId={tool.id}
|
||||
title={tool.title}
|
||||
description={tool.description}
|
||||
title={toolTitle(tool)}
|
||||
description={toolDescription(tool)}
|
||||
href="/tools/{tool.id}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user