diff --git a/web/app/components/snippets/components/snippet-card.tsx b/web/app/components/snippets/components/snippet-card.tsx
index a55fc5ec05..764dba66f4 100644
--- a/web/app/components/snippets/components/snippet-card.tsx
+++ b/web/app/components/snippets/components/snippet-card.tsx
@@ -1,6 +1,7 @@
'use client'
import type { SnippetListItem } from '@/types/snippet'
+import { useTranslation } from 'react-i18next'
import AppIcon from '@/app/components/base/app-icon'
import Link from '@/next/link'
@@ -9,6 +10,8 @@ type Props = {
}
const SnippetCard = ({ snippet }: Props) => {
+ const { t } = useTranslation('snippet')
+
return (
@@ -43,7 +46,7 @@ const SnippetCard = ({ snippet }: Props) => {
{!snippet.is_published && (
<>
·
- {snippet.use_count}
+ {t('usageCount', { count: snippet.use_count })}
>
)}
diff --git a/web/i18n/en-US/snippet.json b/web/i18n/en-US/snippet.json
index fa060c99c2..8ce20472eb 100644
--- a/web/i18n/en-US/snippet.json
+++ b/web/i18n/en-US/snippet.json
@@ -17,5 +17,6 @@
"sectionEvaluation": "Evaluation",
"sectionOrchestrate": "Orchestrate",
"testRunButton": "Test run",
+ "usageCount": "Used {{count}} times",
"variableInspect": "Variable Inspect"
}
diff --git a/web/i18n/zh-Hans/snippet.json b/web/i18n/zh-Hans/snippet.json
index db01deb153..eeb38faf44 100644
--- a/web/i18n/zh-Hans/snippet.json
+++ b/web/i18n/zh-Hans/snippet.json
@@ -17,5 +17,6 @@
"sectionEvaluation": "评测",
"sectionOrchestrate": "编排",
"testRunButton": "测试运行",
+ "usageCount": "已使用 {{count}} 次",
"variableInspect": "变量查看"
}