Skip to content

Commit

Permalink
fix(electron): shell missing i18n init (#8499)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Oct 15, 2024
1 parent 24e0c57 commit c0601e0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/frontend/apps/electron/renderer/shell/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
AppTabsHeader,
configureAppTabsHeaderModule,
} from '@affine/core/modules/app-tabs-header';
import { configureI18nModule, I18nProvider } from '@affine/core/modules/i18n';
import { configureElectronStateStorageImpls } from '@affine/core/modules/storage';
import { SplitViewFallback } from '@affine/core/modules/workbench/view/split-view/split-view';
import {
Expand All @@ -21,6 +22,7 @@ configureGlobalStorageModule(framework);
configureElectronStateStorageImpls(framework);
configureAppTabsHeaderModule(framework);
configureAppSidebarModule(framework);
configureI18nModule(framework);
const frameworkProvider = framework.provider();

export function App() {
Expand All @@ -32,12 +34,14 @@ export function App() {
return (
<FrameworkRoot framework={frameworkProvider}>
<ThemeProvider>
<div className={styles.root} data-translucent={translucent}>
<AppTabsHeader mode="shell" className={styles.appTabsHeader} />
<ShellAppFallback className={styles.fallbackRoot}>
<SplitViewFallback className={styles.splitViewFallback} />
</ShellAppFallback>
</div>
<I18nProvider>
<div className={styles.root} data-translucent={translucent}>
<AppTabsHeader mode="shell" className={styles.appTabsHeader} />
<ShellAppFallback className={styles.fallbackRoot}>
<SplitViewFallback className={styles.splitViewFallback} />
</ShellAppFallback>
</div>
</I18nProvider>
</ThemeProvider>
</FrameworkRoot>
);
Expand Down

0 comments on commit c0601e0

Please sign in to comment.