diff --git a/.changeset/strange-lemons-notice.md b/.changeset/strange-lemons-notice.md deleted file mode 100644 index 5db857c2cb..0000000000 --- a/.changeset/strange-lemons-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@scow/ai": patch ---- - -ai 加上国际化的 Provider diff --git a/apps/ai/src/app/clientLayout.tsx b/apps/ai/src/app/clientLayout.tsx index dcd7c2f1a5..d75d6251d5 100644 --- a/apps/ai/src/app/clientLayout.tsx +++ b/apps/ai/src/app/clientLayout.tsx @@ -18,9 +18,6 @@ import { usePathname } from "next/navigation"; import { ErrorBoundary } from "src/components/ErrorBoundary"; import { Loading } from "src/components/Loading"; import { TopProgressBar } from "src/components/TopProgressBar"; -import { Provider } from "src/i18n"; -import en from "src/i18n/en"; -import zh_cn from "src/i18n/zh_cn"; import { AntdConfigProvider } from "src/layouts/AntdConfigProvider"; import { DarkModeCookie, DarkModeProvider } from "src/layouts/darkMode"; import { RootErrorContent } from "src/layouts/error/RootErrorContent"; @@ -31,11 +28,6 @@ import { trpc } from "src/utils/trpc"; import { UiConfigContext } from "./uiContext"; -const languagesMap = { - "zh_cn": zh_cn, - "en": en, -}; - export function ClientLayout(props: { children: React.ReactNode, initialDark?: DarkModeCookie, @@ -57,44 +49,36 @@ export function ClientLayout(props: { ?? primaryColor?.defaultColor ?? uiConfig.defaultPrimaryColor; return ( - - - - - - { - useConfig.isLoading ? - - : ( - - - - - - - {props.children} - - - - - ) - } - - - - - - + + + + + { + useConfig.isLoading ? + + : ( + + + + + + + {props.children} + + + + + ) + } + + + + ); }