فهرست منبع

set `preloadAllLang: true`

Yuki Takei 7 ماه پیش
والد
کامیت
39c921d0cd
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      apps/app/src/pages/installer/index.page.tsx
  2. 1 1
      apps/app/src/pages/me/index.page.tsx

+ 2 - 2
apps/app/src/pages/installer/index.page.tsx

@@ -14,8 +14,8 @@ import type { CommonEachProps, CommonInitialProps } from '../common-props';
 import {
   getServerSideCommonEachProps, getServerSideCommonInitialProps, getServerSideI18nProps,
 } from '../common-props';
-import { mergeGetServerSidePropsResults } from '../utils/server-side-props';
 import { useCustomTitle } from '../utils/page-title-customization';
+import { mergeGetServerSidePropsResults } from '../utils/server-side-props';
 
 
 const InstallerForm = dynamic(() => import('~/client/components/InstallerForm'), { ssr: false });
@@ -85,7 +85,7 @@ export const getServerSideProps: GetServerSideProps = async(context: GetServerSi
     getServerSideCommonInitialProps(context),
     getServerSideCommonEachProps(context),
     getServerSideConfigurationProps(context),
-    getServerSideI18nProps(context, ['translation']),
+    getServerSideI18nProps(context, ['translation'], { preloadAllLang: true }),
   ]);
 
   return mergeGetServerSidePropsResults(commonInitialResult,

+ 1 - 1
apps/app/src/pages/me/index.page.tsx

@@ -155,7 +155,7 @@ export const getServerSideProps: GetServerSideProps = async(context: GetServerSi
     getServerSideCommonEachProps(context),
     getServerSideBasicLayoutProps(context),
     getServerSideConfigurationProps(context),
-    getServerSideI18nProps(context, ['translation', 'admin']),
+    getServerSideI18nProps(context, ['translation', 'admin'], { preloadAllLang: true }),
   ]);
 
   return mergeGetServerSidePropsResults(commonInitialResult,