diff --git a/bun.lockb b/bun.lockb index 33bcbde90..2c967038b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/ServerFlag.tsx b/components/ServerFlag.tsx index c7693990d..c88040f12 100644 --- a/components/ServerFlag.tsx +++ b/components/ServerFlag.tsx @@ -10,7 +10,7 @@ export default function ServerFlag({ country_code: string className?: string }) { - const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(false) + const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(true) const useSvgFlag = getEnv("NEXT_PUBLIC_ForceUseSvgFlag") === "true" @@ -40,10 +40,6 @@ export default function ServerFlag({ if (!country_code) return null - if (supportsEmojiFlags && country_code.toLowerCase() === "tw") { - country_code = "cn" - } - return ( {useSvgFlag || !supportsEmojiFlags ? ( diff --git a/package.json b/package.json index 5aefa73a2..65064a9f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nezha-dash", - "version": "1.8.6", + "version": "1.9.0", "private": true, "scripts": { "dev": "next dev -p 3040", @@ -44,7 +44,7 @@ "maxmind": "^4.3.23", "next": "^15.1.2", "next-auth": "^5.0.0-beta.25", - "next-intl": "^3.26.2", + "next-intl": "^3.26.3", "next-runtime-env": "^3.2.2", "next-themes": "^0.4.4", "react": "^19.0.0",