mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07:19 +02:00
Move modules/translations.ts to utils/translations.ts
This commit is contained in:
parent
fc64f0dfa7
commit
1753a2d525
@ -3,7 +3,7 @@ import "./utils/global";
|
||||
import { BxEvent } from "./utils/bx-event";
|
||||
import { BX_FLAGS } from "./utils/bx-flags";
|
||||
import { BxExposed } from "./utils/bx-exposed";
|
||||
import { t } from "./modules/translation";
|
||||
import { t } from "./utils/translation";
|
||||
import { CE } from "./utils/html";
|
||||
import { showGamepadToast } from "./utils/gamepad";
|
||||
import { MkbHandler } from "./modules/mkb/mkb-handler";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { t } from "./translation";
|
||||
import { t } from "../utils/translation";
|
||||
import { CE, createButton, ButtonStyle, Icon } from "../utils/html";
|
||||
|
||||
type DialogOptions = {
|
||||
|
@ -2,7 +2,7 @@ import { CE } from "../utils/html";
|
||||
import { getPreferredServerRegion } from "../utils/region";
|
||||
import { TitlesInfo } from "../utils/titles-info";
|
||||
import { PrefKey, getPref } from "./preferences";
|
||||
import { t } from "./translation";
|
||||
import { t } from "../utils/translation";
|
||||
|
||||
export class LoadingScreen {
|
||||
static #$bgStyle: HTMLElement;
|
||||
|
@ -4,7 +4,7 @@ import { createButton, Icon, ButtonStyle, CE } from "../../utils/html";
|
||||
import { BxEvent } from "../../utils/bx-event";
|
||||
import { PrefKey, getPref } from "../preferences";
|
||||
import { Toast } from "../../utils/toast";
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { LocalDb } from "../../utils/local-db";
|
||||
import { KeyHelper } from "./key-helper";
|
||||
import type { MkbStoredPreset } from "../../types/mkb";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { SettingElementType } from "../settings";
|
||||
import { GamepadKey, MouseButtonCode, MouseMapTo, MkbPresetKey } from "./definitions";
|
||||
import { MkbHandler } from "./mkb-handler";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { GamepadKey } from "./definitions";
|
||||
import { CE, createButton, ButtonStyle } from "../../utils/html";
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { Dialog } from "../dialog";
|
||||
import { getPref, setPref, PrefKey } from "../preferences";
|
||||
import { MkbPresetKey, GamepadKeyName } from "./definitions";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { CE } from "../utils/html";
|
||||
import { SUPPORTED_LANGUAGES, t } from "./translation";
|
||||
import { SUPPORTED_LANGUAGES, t } from "../utils/translation";
|
||||
import { SettingElement, SettingElementType } from "./settings";
|
||||
import { UserAgentProfile } from "../utils/user-agent";
|
||||
import { StreamStat } from "./stream/stream-stats";
|
||||
|
@ -3,7 +3,7 @@ import { CE, createButton, ButtonStyle, Icon } from "../utils/html";
|
||||
import { Toast } from "../utils/toast";
|
||||
import { BxEvent } from "../utils/bx-event";
|
||||
import { getPref, PrefKey, setPref } from "./preferences";
|
||||
import { t } from "./translation";
|
||||
import { t } from "../utils/translation";
|
||||
import { localRedirect } from "./ui/ui";
|
||||
|
||||
enum RemotePlayConsoleState {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { BxEvent } from "../../utils/bx-event";
|
||||
import { CE } from "../../utils/html";
|
||||
import { STATES } from "../../utils/global";
|
||||
|
@ -3,7 +3,7 @@ import { BxEvent } from "../../utils/bx-event"
|
||||
import { getPref } from "../preferences"
|
||||
import { StreamBadges } from "./stream-badges"
|
||||
import { CE } from "../../utils/html"
|
||||
import { t } from "../translation"
|
||||
import { t } from "../../utils/translation"
|
||||
import { STATES } from "../../utils/global"
|
||||
|
||||
export enum StreamStat {
|
||||
|
@ -2,7 +2,7 @@ import { STATES } from "../../utils/global";
|
||||
import { Icon } from "../../utils/html";
|
||||
import { BxEvent } from "../../utils/bx-event";
|
||||
import { PrefKey, getPref } from "../preferences";
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { StreamBadges } from "./stream-badges";
|
||||
import { StreamStats } from "./stream-stats";
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { Toast } from "../utils/toast";
|
||||
import { BxEvent } from "../utils/bx-event";
|
||||
import { BX_FLAGS } from "../utils/bx-flags";
|
||||
import { getPref, PrefKey } from "./preferences";
|
||||
import { t } from "./translation";
|
||||
import { t } from "../utils/translation";
|
||||
|
||||
export class TouchController {
|
||||
static readonly #EVENT_SHOW_DEFAULT_CONTROLLER = new MessageEvent('message', {
|
||||
|
@ -3,7 +3,7 @@ import { CE, createButton, Icon, ButtonStyle } from "../../utils/html";
|
||||
import { getPreferredServerRegion } from "../../utils/region";
|
||||
import { UserAgent, UserAgentProfile } from "../../utils/user-agent";
|
||||
import { getPref, Preferences, PrefKey, setPref, toPrefElement } from "../preferences";
|
||||
import { t, refreshCurrentLocale } from "../translation";
|
||||
import { t, refreshCurrentLocale } from "../../utils/translation";
|
||||
|
||||
const SETTINGS_UI = {
|
||||
'Better xCloud': {
|
||||
|
@ -3,7 +3,7 @@ import { createButton, Icon, ButtonStyle } from "../../utils/html";
|
||||
import { getPreferredServerRegion } from "../../utils/region";
|
||||
import { PrefKey, getPref } from "../preferences";
|
||||
import { RemotePlay } from "../remote-play";
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { setupSettingsUi } from "./global-settings";
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ import { getPref, PrefKey, toPrefElement } from "../preferences";
|
||||
import { setupScreenshotButton } from "../screenshot";
|
||||
import { StreamStats } from "../stream/stream-stats";
|
||||
import { TouchController } from "../touch-controller";
|
||||
import { t } from "../translation";
|
||||
import { t } from "../../utils/translation";
|
||||
import { VibrationManager } from "../vibration-manager";
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { MkbHandler } from "../modules/mkb/mkb-handler";
|
||||
import { PrefKey, getPref } from "../modules/preferences";
|
||||
import { t } from "../modules/translation";
|
||||
import { t } from "./translation";
|
||||
import { Toast } from "./toast";
|
||||
|
||||
// Show a toast when connecting/disconecting controller
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { MkbPreset } from "../modules/mkb/mkb-preset";
|
||||
import { PrefKey, setPref } from "../modules/preferences";
|
||||
import { t } from "../modules/translation";
|
||||
import { t } from "./translation";
|
||||
import type { MkbStoredPreset, MkbStoredPresets } from "../types/mkb";
|
||||
|
||||
export class LocalDb {
|
||||
|
Loading…
x
Reference in New Issue
Block a user