Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Feb 13, 2025
1 parent d2734f4 commit 7fec04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layout/GlobalProvider/Locale.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const Locale = memo<LocaleLayoutProps>(({ children, defaultLang, antdLocale }) =

// if run on server side, init i18n instance everytime
if (isOnServerSide) {
console.log('server side i18n init:', defaultLang);
i18n.init();

// load the dayjs locale
Expand Down
2 changes: 2 additions & 0 deletions src/layout/GlobalProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const GlobalLayout = async ({
// get default feature flags to use with ssr
const serverFeatureFlags = getServerFeatureFlagsValue();
const serverConfig = await getServerGlobalConfig();
console.log('defaultLang:', userLocale);

return (
<StyleRegistry>
<Locale antdLocale={antdLocale} defaultLang={userLocale}>
Expand Down

0 comments on commit 7fec04c

Please sign in to comment.