mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: enLocale import
This commit is contained in:
parent
f38d3a192b
commit
aa9ea7b763
@ -8,10 +8,13 @@ import { Badge } from "@/components/ui/badge"
|
|||||||
import { Card, CardContent } from "@/components/ui/card"
|
import { Card, CardContent } from "@/components/ui/card"
|
||||||
import { cn, formatBytes } from "@/lib/utils"
|
import { cn, formatBytes } from "@/lib/utils"
|
||||||
import countries from "i18n-iso-countries"
|
import countries from "i18n-iso-countries"
|
||||||
|
import enLocale from "i18n-iso-countries/langs/en.json"
|
||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { notFound, useRouter } from "next/navigation"
|
import { notFound, useRouter } from "next/navigation"
|
||||||
import { useEffect, useState } from "react"
|
import { useEffect, useState } from "react"
|
||||||
|
|
||||||
|
countries.registerLocale(enLocale)
|
||||||
|
|
||||||
export default function ServerDetailClient({
|
export default function ServerDetailClient({
|
||||||
server_id,
|
server_id,
|
||||||
}: {
|
}: {
|
||||||
@ -61,8 +64,6 @@ export default function ServerDetailClient({
|
|||||||
|
|
||||||
if (!data) return <ServerDetailLoading />
|
if (!data) return <ServerDetailLoading />
|
||||||
|
|
||||||
countries.registerLocale(require("i18n-iso-countries/langs/en.json"))
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user