added multi language features

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-31 19:45:21 +05:00
parent 4f3d73443f
commit 291375ce02
19 changed files with 728 additions and 246 deletions

View File

@@ -1,21 +1,24 @@
'use client';
import React from 'react';
import { useTranslations } from 'next-intl';
import { useHistory } from '../lib/useHistory';
import { HistoryTable } from './historyTable';
import { Pagination } from './pagination';
// ─── Page Header ───────────────────────────────────────────────────────────────
const PageHeader: React.FC = () => (
<div className="mb-6">
<h1 className="text-2xl font-semibold text-slate-900 tracking-tight">
Check History
</h1>
<p className="mt-1 text-sm text-slate-500">
All plagiarism checks submitted by you
</p>
</div>
);
const PageHeader: React.FC = () => {
const t = useTranslations('HistoryPage');
return (
<div className="mb-6">
<h1 className="text-2xl font-semibold text-slate-900 tracking-tight">
{t('title')}
</h1>
<p className="mt-1 text-sm text-slate-500">{t('description')}</p>
</div>
);
};
// ─── HistoryPage ───────────────────────────────────────────────────────────────