diff --git a/src/plugins/messageLinkEmbeds/index.tsx b/src/plugins/messageLinkEmbeds/index.tsx index d80fb9772a..d86cac53ac 100644 --- a/src/plugins/messageLinkEmbeds/index.tsx +++ b/src/plugins/messageLinkEmbeds/index.tsx @@ -22,6 +22,7 @@ import { definePluginSettings } from "@api/Settings"; import { getUserSettingLazy } from "@api/UserSettings"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs } from "@utils/constants.js"; +import { getIntlMessage } from "@utils/discord"; import { classes } from "@utils/misc"; import { Queue } from "@utils/Queue"; import definePlugin, { OptionType } from "@utils/types"; @@ -31,7 +32,6 @@ import { ChannelStore, Constants, GuildStore, - i18n, Icons, IconUtils, MessageStore, @@ -309,7 +309,7 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element { return (
- {i18n.Messages.EXPLICIT_CONTENT_WARNING} + {getIntlMessage("EXPLICIT_CONTENT_WARNING")}
} @@ -332,7 +332,7 @@ function Spoiler(props: { children: JSX.Element }) : JSX.Element {
setVisible(!visible)} - aria-label={i18n.Messages.EXPLICIT_CONTENT_BUTTON_TOOLTIP} + aria-label={getIntlMessage("EXPLICIT_CONTENT_BUTTON_TOOLTIP")} className={obscureHoverButton}> {visible ? : }