From c0601e04fbe66d36f442ff1367908f780eb3f950 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Tue, 15 Oct 2024 10:30:02 +0000 Subject: [PATCH] fix(electron): shell missing i18n init (#8499) --- .../apps/electron/renderer/shell/app.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/frontend/apps/electron/renderer/shell/app.tsx b/packages/frontend/apps/electron/renderer/shell/app.tsx index 4a3185ca261b7..42179afa0d079 100644 --- a/packages/frontend/apps/electron/renderer/shell/app.tsx +++ b/packages/frontend/apps/electron/renderer/shell/app.tsx @@ -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 { @@ -21,6 +22,7 @@ configureGlobalStorageModule(framework); configureElectronStateStorageImpls(framework); configureAppTabsHeaderModule(framework); configureAppSidebarModule(framework); +configureI18nModule(framework); const frameworkProvider = framework.provider(); export function App() { @@ -32,12 +34,14 @@ export function App() { return ( -
- - - - -
+ +
+ + + + +
+
);