Skip to content

Commit 4c19a5c

Browse files
committed
fix: circular deps
1 parent 7d65715 commit 4c19a5c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/accessibility/KeyboardShortcuts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
88
Please see LICENSE files in the repository root for full details.
99
*/
1010

11-
import { _td, type TranslationKey } from "../languageHandler";
11+
// Import i18n.tsx instead of languageHandler to avoid circular deps
12+
import { _td, type TranslationKey } from "../shared-components/i18n";
1213
import { IS_MAC, IS_ELECTRON, Key } from "../Keyboard";
1314
import { type IBaseSetting } from "../settings/Settings";
1415
import { type KeyCombo } from "../KeyBindingsManager";

src/settings/Settings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import React, { type ReactNode } from "react";
1111
import { UNSTABLE_MSC4133_EXTENDED_PROFILES } from "matrix-js-sdk/src/matrix";
1212

1313
import { type MediaPreviewConfig } from "../@types/media_preview.ts";
14-
import { _t, _td, type TranslationKey } from "../languageHandler";
14+
// Import i18n.tsx instead of languageHandler to avoid circular deps
15+
import { _t, _td, type TranslationKey } from "../shared-components/i18n";
1516
import DeviceIsolationModeController from "./controllers/DeviceIsolationModeController.ts";
1617
import {
1718
NotificationBodyEnabledController,

0 commit comments

Comments
 (0)