mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 09:22:38 +03:00
fix(electron): shell missing i18n init (#8499)
This commit is contained in:
parent
24e0c5797c
commit
c0601e04fb
@ -6,6 +6,7 @@ import {
|
|||||||
AppTabsHeader,
|
AppTabsHeader,
|
||||||
configureAppTabsHeaderModule,
|
configureAppTabsHeaderModule,
|
||||||
} from '@affine/core/modules/app-tabs-header';
|
} from '@affine/core/modules/app-tabs-header';
|
||||||
|
import { configureI18nModule, I18nProvider } from '@affine/core/modules/i18n';
|
||||||
import { configureElectronStateStorageImpls } from '@affine/core/modules/storage';
|
import { configureElectronStateStorageImpls } from '@affine/core/modules/storage';
|
||||||
import { SplitViewFallback } from '@affine/core/modules/workbench/view/split-view/split-view';
|
import { SplitViewFallback } from '@affine/core/modules/workbench/view/split-view/split-view';
|
||||||
import {
|
import {
|
||||||
@ -21,6 +22,7 @@ configureGlobalStorageModule(framework);
|
|||||||
configureElectronStateStorageImpls(framework);
|
configureElectronStateStorageImpls(framework);
|
||||||
configureAppTabsHeaderModule(framework);
|
configureAppTabsHeaderModule(framework);
|
||||||
configureAppSidebarModule(framework);
|
configureAppSidebarModule(framework);
|
||||||
|
configureI18nModule(framework);
|
||||||
const frameworkProvider = framework.provider();
|
const frameworkProvider = framework.provider();
|
||||||
|
|
||||||
export function App() {
|
export function App() {
|
||||||
@ -32,12 +34,14 @@ export function App() {
|
|||||||
return (
|
return (
|
||||||
<FrameworkRoot framework={frameworkProvider}>
|
<FrameworkRoot framework={frameworkProvider}>
|
||||||
<ThemeProvider>
|
<ThemeProvider>
|
||||||
<div className={styles.root} data-translucent={translucent}>
|
<I18nProvider>
|
||||||
<AppTabsHeader mode="shell" className={styles.appTabsHeader} />
|
<div className={styles.root} data-translucent={translucent}>
|
||||||
<ShellAppFallback className={styles.fallbackRoot}>
|
<AppTabsHeader mode="shell" className={styles.appTabsHeader} />
|
||||||
<SplitViewFallback className={styles.splitViewFallback} />
|
<ShellAppFallback className={styles.fallbackRoot}>
|
||||||
</ShellAppFallback>
|
<SplitViewFallback className={styles.splitViewFallback} />
|
||||||
</div>
|
</ShellAppFallback>
|
||||||
|
</div>
|
||||||
|
</I18nProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</FrameworkRoot>
|
</FrameworkRoot>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user