♻️ refactor(logs): Add localization files and update existing translations for multiple languages

This commit is contained in:
web
2025-08-26 12:10:17 -07:00
parent 551135de77
commit 2f20ac95da
56 changed files with 1363 additions and 62 deletions
@@ -21,9 +21,9 @@ export default function CommissionLogPage() {
{ accessorKey: 'order_no', header: t('column.orderNo') },
{ accessorKey: 'type', header: t('column.type') },
{
accessorKey: 'created_at',
header: t('column.createdAt'),
cell: ({ row }) => formatDate(row.original.created_at),
accessorKey: 'timestamp',
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.timestamp),
},
]}
params={[
+1 -1
View File
@@ -32,7 +32,7 @@ export default function EmailLogPage() {
{ accessorKey: 'status', header: t('column.status') },
{
accessorKey: 'created_at',
header: t('column.createdAt'),
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.created_at),
},
]}
+3 -3
View File
@@ -23,9 +23,9 @@ export default function GiftLogPage() {
{ accessorKey: 'balance', header: t('column.balance') },
{ accessorKey: 'remark', header: t('column.remark') },
{
accessorKey: 'created_at',
header: t('column.createdAt'),
cell: ({ row }) => formatDate(row.original.created_at),
accessorKey: 'timestamp',
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.timestamp),
},
]}
params={[
+2 -2
View File
@@ -36,9 +36,9 @@ export default function LoginLogPage() {
),
},
{
accessorKey: 'login_time',
accessorKey: 'timestamp',
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.login_time),
cell: ({ row }) => formatDate(row.original.timestamp),
},
]}
params={[
+1 -1
View File
@@ -31,7 +31,7 @@ export default function MobileLogPage() {
{ accessorKey: 'status', header: t('column.status') },
{
accessorKey: 'created_at',
header: t('column.createdAt'),
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.created_at),
},
]}
@@ -27,9 +27,9 @@ export default function RegisterLogPage() {
},
{ accessorKey: 'user_agent', header: t('column.userAgent') },
{
accessorKey: 'register_time',
accessorKey: 'timestamp',
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.register_time),
cell: ({ row }) => formatDate(row.original.timestamp),
},
]}
params={[
@@ -21,9 +21,9 @@ export default function ResetSubscribeLogPage() {
{ accessorKey: 'type', header: t('column.type') },
{ accessorKey: 'order_no', header: t('column.orderNo') },
{
accessorKey: 'reset_at',
header: t('column.resetAt'),
cell: ({ row }) => formatDate(row.original.reset_at),
accessorKey: 'timestamp',
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.timestamp),
},
]}
params={[
@@ -3,7 +3,7 @@
import { UserDetail } from '@/app/dashboard/user/user-detail';
import { ProTable } from '@/components/pro-table';
import { filterUserSubscribeTrafficLog } from '@/services/admin/log';
import { formatBytes, formatDate } from '@workspace/ui/utils';
import { formatBytes } from '@workspace/ui/utils';
import { useTranslations } from 'next-intl';
export default function SubscribeTrafficLogPage() {
@@ -36,7 +36,6 @@ export default function SubscribeTrafficLogPage() {
{
accessorKey: 'date',
header: t('column.date'),
cell: ({ row }) => formatDate(new Date(row.original.date)),
},
]}
params={[
@@ -27,9 +27,9 @@ export default function SubscribeLogPage() {
},
{ accessorKey: 'user_agent', header: t('column.userAgent') },
{
accessorKey: 'subscribed_at',
accessorKey: 'timestamp',
header: t('column.time'),
cell: ({ row }) => formatDate(row.original.subscribed_at),
cell: ({ row }) => formatDate(row.original.timestamp),
},
]}
params={[
@@ -8,7 +8,7 @@ import { useTranslations } from 'next-intl';
export default function TrafficDetailsPage() {
const t = useTranslations('log');
return (
<ProTable<any, { search?: string }>
<ProTable<API.TrafficLogDetails, { search?: string }>
header={{ title: t('title.trafficDetails') }}
columns={[
{ accessorKey: 'server_id', header: t('column.serverId') },