🐛 fix: reorder AppTheme and Locale to fix modal i18n (#8600)

This commit is contained in:
Zhaker
2025-07-29 19:12:09 +08:00
committed by GitHub
parent 9a372f622d
commit 3264cf2106
+11 -11
View File
@@ -40,15 +40,15 @@ const GlobalLayout = async ({
const serverConfig = await getServerGlobalConfig();
return (
<StyleRegistry>
<AppTheme
customFontFamily={appEnv.CUSTOM_FONT_FAMILY}
customFontURL={appEnv.CUSTOM_FONT_URL}
defaultAppearance={appearance}
defaultNeutralColor={neutralColor as any}
defaultPrimaryColor={primaryColor as any}
globalCDN={appEnv.CDN_USE_GLOBAL}
>
<Locale antdLocale={antdLocale} defaultLang={userLocale}>
<Locale antdLocale={antdLocale} defaultLang={userLocale}>
<AppTheme
customFontFamily={appEnv.CUSTOM_FONT_FAMILY}
customFontURL={appEnv.CUSTOM_FONT_URL}
defaultAppearance={appearance}
defaultNeutralColor={neutralColor as any}
defaultPrimaryColor={primaryColor as any}
globalCDN={appEnv.CDN_USE_GLOBAL}
>
<ServerConfigStoreProvider
featureFlags={serverFeatureFlags}
isMobile={isMobile}
@@ -63,8 +63,8 @@ const GlobalLayout = async ({
{process.env.NODE_ENV === 'development' && <DevPanel />}
</Suspense>
</ServerConfigStoreProvider>
</Locale>
</AppTheme>
</AppTheme>
</Locale>
<AntdV5MonkeyPatch />
</StyleRegistry>
);