From e8018fde83874bad6da0cdcfd002bb5f9a294b17 Mon Sep 17 00:00:00 2001
From: chanx <1243304602@qq.com>
Date: Mon, 8 Sep 2025 17:14:23 +0800
Subject: [PATCH] Fix: Update the pagination prompt text in zh.ts, changing
"page" to "item/page" #3221 (#9978)
### What problem does this PR solve?
Fix: Update the pagination prompt text in zh.ts, changing "page" to
"item/page"
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---
web/src/components/ui/ragflow-pagination.tsx | 6 +-----
web/src/locales/en.ts | 2 +-
web/src/locales/zh.ts | 2 +-
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/web/src/components/ui/ragflow-pagination.tsx b/web/src/components/ui/ragflow-pagination.tsx
index 0eb013556..1426425d3 100644
--- a/web/src/components/ui/ragflow-pagination.tsx
+++ b/web/src/components/ui/ragflow-pagination.tsx
@@ -33,11 +33,7 @@ export function RAGFlowPagination({
const sizeChangerOptions: RAGFlowSelectOptionType[] = useMemo(() => {
return [10, 20, 50, 100].map((x) => ({
- label: (
-
- {x} / {t('pagination.page')}
-
- ),
+ label: {t('pagination.page', { page: x })},
value: x.toString(),
}));
}, []);
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index b22a91127..fa62ce3c0 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -1586,7 +1586,7 @@ This delimiter is used to split the input text into several text pieces echo of
},
pagination: {
total: 'Total {{total}}',
- page: 'Page',
+ page: '{{page}} /Page',
},
},
};
diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts
index b8084fda7..b63805c7c 100644
--- a/web/src/locales/zh.ts
+++ b/web/src/locales/zh.ts
@@ -1498,7 +1498,7 @@ General:实体和关系提取提示来自 GitHub - microsoft/graphrag:基于
},
pagination: {
total: '总共 {{total}} 条',
- page: '页',
+ page: '{{page}}条/页',
},
},
};