feat: 接入公开币种目录并统一多币种金额与语言初始化处理

This commit is contained in:
2026-05-21 15:14:00 +08:00
parent 626914feb6
commit 6b18e25766
27 changed files with 277 additions and 94 deletions

View File

@@ -1,5 +1,7 @@
"use client";
import "@/i18n";
import { ChevronDown, Globe } from "lucide-react";
import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
import { useTranslation } from "react-i18next";

View File

@@ -1,18 +1,23 @@
"use client";
import type { ReactNode } from "react";
import { useEffect, type ReactNode } from "react";
import { Toaster } from "@/components/ui/sonner";
import { ErrorProvider } from "@/components/error-provider";
import { IframeBridge } from "@/components/iframe-bridge";
import { TokenRefreshIndicator } from "@/components/token-refresh-indicator";
import "@/i18n";
import { syncPreferredLanguage } from "@/i18n";
type ProvidersProps = {
children: ReactNode;
};
export function Providers({ children }: ProvidersProps): ReactNode {
useEffect(() => {
syncPreferredLanguage();
}, []);
return (
<>
<ErrorProvider>