diff options
Diffstat (limited to 'src/webpack/common/utils.ts')
-rw-r--r-- | src/webpack/common/utils.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index b53c340..083e8d7 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -19,7 +19,7 @@ import type { User } from "discord-types/general"; // eslint-disable-next-line path-alias/no-relative -import { _resolveReady,filters, findByCodeLazy, findByPropsLazy, mapMangledModuleLazy, waitFor } from "../webpack"; +import { _resolveReady, filters, findByCodeLazy, findByPropsLazy, findLazy, mapMangledModuleLazy, waitFor } from "../webpack"; import type * as t from "./types/utils"; export let FluxDispatcher: t.FluxDispatcher; @@ -29,6 +29,8 @@ export const moment: typeof import("moment") = findByPropsLazy("parseTwoDigitYea export const hljs: typeof import("highlight.js") = findByPropsLazy("highlight"); +export const i18n: t.i18n = findLazy(m => m.Messages?.["en-US"]); + export let SnowflakeUtils: t.SnowflakeUtils; waitFor(["fromTimestamp", "extractTimestamp"], m => SnowflakeUtils = m); |