feat: 优化翻译函数支持参数传递

This commit is contained in:
2026-01-24 17:06:40 +08:00
parent b7402edf6a
commit fc29ec880c
11 changed files with 653 additions and 686 deletions

View File

@@ -70,9 +70,9 @@ export default function VideoFramesPage() {
useEffect(() => setMounted(true), []);
const { t } = useTranslation();
const getT = (key: string) => {
if (!mounted) return getServerTranslations("en").t(key);
return t(key);
const getT = (key: string, params?: Record<string, string | number>) => {
if (!mounted) return getServerTranslations("en").t(key, params);
return t(key, params);
};
const { files, addFile, removeFile, clearFiles, processingStatus, setProcessingStatus } =