Add Chinese translation (Thank you copilot, and I swear I reviewed the code carefully)

This commit is contained in:
lyc8503 committed 2025-12-23 23:22:33 +08:00
1 parent 77cdf19f7d
commit e9d8a1c842
16 files changed
+324 -68

No files matched your search

+3 -1
View File
@@ -13,6 +13,7 @@ import {
import 'chartjs-adapter-moment'
import { MonitorState, MonitorTarget } from '@/types/config'
import { codeToCountry } from '@/util/iata'
import { useTranslation } from 'react-i18next'
ChartJS.register(
CategoryScale,
@@ -32,6 +33,7 @@ export default function DetailChart({
monitor: MonitorTarget
state: MonitorState
}) {
const { t } = useTranslation('common')
const latencyData = state.latency[monitor.id].recent.map((point) => ({
x: point.time * 1000,
y: point.ping,
@@ -76,7 +78,7 @@ export default function DetailChart({
},
title: {
display: true,
text: 'Response times(ms)',
text: t('Response times'),
align: 'start' as const,
},
},