Spaces:
Paused
Paused
Commit ·
5b6d15f
1
Parent(s): 6c68bfd
refactor(i18n): migrate status page ternaries 7-12 to t()
Browse files- statusMonthlyUptime, statusTotalRequests, statusActiveNodeDir
- statusNodeGateway, statusTopologyRegion, statusLatencySavings
- statusSystemLoad
- app/status/page.tsx +7 -7
app/status/page.tsx
CHANGED
|
@@ -179,11 +179,11 @@ export default function StatusPage() {
|
|
| 179 |
|
| 180 |
<div className="space-y-4">
|
| 181 |
<div>
|
| 182 |
-
<span className="text-[9px] text-muted-foreground block uppercase">{
|
| 183 |
<span className="text-2xl font-bold text-primary">{uptimeDays}%</span>
|
| 184 |
</div>
|
| 185 |
<div className="border-t border-border pt-3">
|
| 186 |
-
<span className="text-[9px] text-muted-foreground block uppercase">{
|
| 187 |
<span className="text-xl font-bold text-foreground">
|
| 188 |
{totalRequests.toLocaleString()}
|
| 189 |
</span>
|
|
@@ -196,15 +196,15 @@ export default function StatusPage() {
|
|
| 196 |
<div className="space-y-4">
|
| 197 |
<h2 className="text-sm font-bold text-muted-foreground uppercase tracking-widest flex items-center gap-2">
|
| 198 |
<Activity className="w-4 h-4 text-primary" />
|
| 199 |
-
<span>{
|
| 200 |
</h2>
|
| 201 |
|
| 202 |
<div className="inverted-card border border-border rounded-lg overflow-hidden font-mono [clip-path:polygon(12px_0,100%_0,100%_calc(100%_-_12px),calc(100%_-_12px)_100%,0_100%,0_12px)]">
|
| 203 |
<div className="hidden sm:grid grid-cols-5 bg-muted/50 px-6 py-3 border-b border-border text-[10px] text-muted-foreground uppercase tracking-widest font-bold text-start">
|
| 204 |
-
<div className="col-span-2 text-start">{
|
| 205 |
-
<div className="text-start">{
|
| 206 |
-
<div className="text-start">{
|
| 207 |
-
<div className="text-end">{
|
| 208 |
</div>
|
| 209 |
|
| 210 |
<div className="divide-y divide-border">
|
|
|
|
| 179 |
|
| 180 |
<div className="space-y-4">
|
| 181 |
<div>
|
| 182 |
+
<span className="text-[9px] text-muted-foreground block uppercase">{t("statusMonthlyUptime")}</span>
|
| 183 |
<span className="text-2xl font-bold text-primary">{uptimeDays}%</span>
|
| 184 |
</div>
|
| 185 |
<div className="border-t border-border pt-3">
|
| 186 |
+
<span className="text-[9px] text-muted-foreground block uppercase">{t("statusTotalRequests")}</span>
|
| 187 |
<span className="text-xl font-bold text-foreground">
|
| 188 |
{totalRequests.toLocaleString()}
|
| 189 |
</span>
|
|
|
|
| 196 |
<div className="space-y-4">
|
| 197 |
<h2 className="text-sm font-bold text-muted-foreground uppercase tracking-widest flex items-center gap-2">
|
| 198 |
<Activity className="w-4 h-4 text-primary" />
|
| 199 |
+
<span>{t("statusActiveNodeDir")}</span>
|
| 200 |
</h2>
|
| 201 |
|
| 202 |
<div className="inverted-card border border-border rounded-lg overflow-hidden font-mono [clip-path:polygon(12px_0,100%_0,100%_calc(100%_-_12px),calc(100%_-_12px)_100%,0_100%,0_12px)]">
|
| 203 |
<div className="hidden sm:grid grid-cols-5 bg-muted/50 px-6 py-3 border-b border-border text-[10px] text-muted-foreground uppercase tracking-widest font-bold text-start">
|
| 204 |
+
<div className="col-span-2 text-start">{t("statusNodeGateway")}</div>
|
| 205 |
+
<div className="text-start">{t("statusTopologyRegion")}</div>
|
| 206 |
+
<div className="text-start">{t("statusLatencySavings")}</div>
|
| 207 |
+
<div className="text-end">{t("statusSystemLoad")}</div>
|
| 208 |
</div>
|
| 209 |
|
| 210 |
<div className="divide-y divide-border">
|