Use #intl

This commit is contained in:
Inbestigator 2025-01-23 12:14:34 -08:00
parent ecf3231b88
commit 42b0f46e77

View file

@ -10,7 +10,6 @@ import { definePluginSettings } from "@api/Settings";
import { classNameFactory } from "@api/Styles";
import { Devs } from "@utils/constants";
import { getIntlMessage } from "@utils/discord";
import { runtimeHashMessageKey } from "@utils/intlHash";
import definePlugin, { OptionType } from "@utils/types";
import { Button, Forms, TextInput } from "@webpack/common";
@ -77,7 +76,7 @@ export default definePlugin({
authors: [Devs.Inbestigator],
patches: [
{
find: "." + runtimeHashMessageKey("BAN_MULTIPLE_CONFIRM_TITLE"),
find: "#{intl::BAN_MULTIPLE_CONFIRM_TITLE}",
replacement: [{
match: /\[(\{((?:name|value):\i\.intl\.string\(\i\.\i\.[A-Za-z0-9]+\),?){2}\},?){3}\]/,
replace: "$self.getReasons()"